Mercurial > projects > ldc
diff gen/statements.cpp @ 704:43165a082535
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.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 14 Oct 2008 13:21:14 +0200 |
parents | 0a682c7805d2 |
children | 30b42a283c8e |
line wrap: on
line diff
--- a/gen/statements.cpp Mon Oct 13 23:19:32 2008 +0200 +++ b/gen/statements.cpp Tue Oct 14 13:21:14 2008 +0200 @@ -1172,9 +1172,8 @@ 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);