Mercurial > projects > ldc
comparison dmd/optimize.c @ 92:70d6113eeb8c trunk
[svn r96] Updated to DMD 1.023.
Regular bugfixes.
author | lindquist |
---|---|
date | Thu, 08 Nov 2007 19:13:28 +0100 |
parents | 3cfcb944304e |
children | 61615fa85940 |
comparison
equal
deleted
inserted
replaced
91:3f949c6e2e9d | 92:70d6113eeb8c |
---|---|
282 { | 282 { |
283 FuncDeclaration *fd = ((VarExp *)e1)->var->isFuncDeclaration(); | 283 FuncDeclaration *fd = ((VarExp *)e1)->var->isFuncDeclaration(); |
284 if (fd) | 284 if (fd) |
285 { | 285 { |
286 Expression *eresult = fd->interpret(NULL, arguments); | 286 Expression *eresult = fd->interpret(NULL, arguments); |
287 if (eresult) | 287 if (eresult && eresult != EXP_VOID_INTERPRET) |
288 e = eresult; | 288 e = eresult; |
289 else if (result & WANTinterpret) | 289 else if (result & WANTinterpret) |
290 error("cannot evaluate %s at compile time", toChars()); | 290 error("cannot evaluate %s at compile time", toChars()); |
291 } | 291 } |
292 } | 292 } |