Mercurial > projects > ldc
comparison dmd/optimize.c @ 1599:0a4be54234d6
Revert fix by Robert for downs as it causes a segfault when compiling tango.
author | Kelly Wilson <wilsonk cpsc.ucalgary.ca> |
---|---|
date | Wed, 23 Dec 2009 22:49:20 -0700 |
parents | 20799faa301d |
children | a542ef277a84 |
comparison
equal
deleted
inserted
replaced
1598:20799faa301d | 1599:0a4be54234d6 |
---|---|
208 { | 208 { |
209 e = ex->copy(); | 209 e = ex->copy(); |
210 e->type = type; | 210 e->type = type; |
211 } | 211 } |
212 return e; | 212 return e; |
213 } | |
214 if (e1->op == TOKdotvar) | |
215 { DotVarExp *de = (DotVarExp *) e1; | |
216 if (de->e1->op == TOKvar && de->var->isVarDeclaration()) | |
217 { | |
218 e = new SymOffExp(loc, ((VarExp*) de->e1)->var, ((VarDeclaration*) de->var)->offset); | |
219 e->type = type; | |
220 return e; | |
221 } | |
222 } | 213 } |
223 #if !IN_LLVM | 214 #if !IN_LLVM |
224 if (e1->op == TOKvar) | 215 if (e1->op == TOKvar) |
225 { VarExp *ve = (VarExp *)e1; | 216 { VarExp *ve = (VarExp *)e1; |
226 if (!ve->var->isOut() && !ve->var->isRef() && | 217 if (!ve->var->isOut() && !ve->var->isRef() && |