From ab325e621427aa947ae2fee43bf54bce6d5f7aa4 Mon Sep 17 00:00:00 2001 From: Kelly Wilson Date: Wed, 23 Dec 2009 22:49:20 -0700 Subject: [PATCH] Revert fix by Robert for downs as it causes a segfault when compiling tango. --- dmd/optimize.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/dmd/optimize.c b/dmd/optimize.c index d2c1395d..34bd5579 100644 --- a/dmd/optimize.c +++ b/dmd/optimize.c @@ -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;