[svn r191] Fixed: array literals did not support all type/storage combinations.

Fixed: with expression had broke somewhere along the way.
This commit is contained in:
Tomas Lindquist Olsen
2008-05-07 00:01:13 +02:00
parent e07b99bc26
commit c31af3dc2d
10 changed files with 73 additions and 46 deletions

View File

@@ -1053,8 +1053,9 @@ void WithStatement::toIR(IRState* p)
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);
}