Mercurial > projects > ldc
diff gen/statements.cpp @ 175:c44e6a711885 trunk
[svn r191] Fixed: array literals did not support all type/storage combinations.
Fixed: with expression had broke somewhere along the way.
author | lindquist |
---|---|
date | Wed, 07 May 2008 00:01:13 +0200 |
parents | db9890b3fb64 |
children | ef4108f34db6 |
line wrap: on
line diff
--- a/gen/statements.cpp Tue May 06 18:36:46 2008 +0200 +++ b/gen/statements.cpp Wed May 07 00:01:13 2008 +0200 @@ -1053,8 +1053,9 @@ assert(body); DValue* e = exp->toElem(p); + assert(!wthis->ir.isSet()); + wthis->ir.irLocal = new IrLocal(wthis); wthis->ir.irLocal->value = e->getRVal(); - delete e; body->toIR(p); }