Fixed issue with accessing a WithStatement context from inside a nested function. see mini/with2.d

Renamed some LLVM uses of ::create statics to ::Create , lower case ones will be deprecated soon.
This commit is contained in:
Tomas Lindquist Olsen
2008-10-14 13:21:14 +02:00
parent 202c4f7bc2
commit 180487b614
4 changed files with 29 additions and 13 deletions

View File

@@ -1172,9 +1172,8 @@ 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 = DtoAlloca(DtoType(wthis->type), wthis->toChars());
DtoDeclarationExp(wthis);
DtoStore(e->getRVal(), wthis->ir.irLocal->value);
body->toIR(p);