comparison 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
comparison
equal deleted inserted replaced
174:16e676ae5ab4 175:c44e6a711885
1051 1051
1052 assert(exp); 1052 assert(exp);
1053 assert(body); 1053 assert(body);
1054 1054
1055 DValue* e = exp->toElem(p); 1055 DValue* e = exp->toElem(p);
1056 assert(!wthis->ir.isSet());
1057 wthis->ir.irLocal = new IrLocal(wthis);
1056 wthis->ir.irLocal->value = e->getRVal(); 1058 wthis->ir.irLocal->value = e->getRVal();
1057 delete e;
1058 1059
1059 body->toIR(p); 1060 body->toIR(p);
1060 } 1061 }
1061 1062
1062 ////////////////////////////////////////////////////////////////////////////// 1063 //////////////////////////////////////////////////////////////////////////////