mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Merged the patch for dmd bugzilla #3620 by request of downs.
This commit is contained in:
@@ -211,6 +211,15 @@ Expression *AddrExp::optimize(int result)
|
||||
}
|
||||
return e;
|
||||
}
|
||||
if (e1->op == TOKdotvar)
|
||||
{ DotVarExp *de = (DotVarExp *) e1;
|
||||
if (de->e1->op == TOKvar && de->var->isVarDeclaration())
|
||||
{
|
||||
e = new SymOffExp(loc, ((VarExp*) de->e1)->var, ((VarDeclaration*) de->var)->offset);
|
||||
e->type = type;
|
||||
return e;
|
||||
}
|
||||
}
|
||||
#if !IN_LLVM
|
||||
if (e1->op == TOKvar)
|
||||
{ VarExp *ve = (VarExp *)e1;
|
||||
|
||||
Reference in New Issue
Block a user