Revert fix by Robert for downs as it causes a segfault when compiling tango.

This commit is contained in:
Kelly Wilson
2009-12-23 22:49:20 -07:00
parent cf55f5fcec
commit ab325e6214

View File

@@ -211,15 +211,6 @@ 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;