Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
703:06576ece1a1b | 704:43165a082535 |
---|---|
1170 | 1170 |
1171 assert(exp); | 1171 assert(exp); |
1172 assert(body); | 1172 assert(body); |
1173 | 1173 |
1174 DValue* e = exp->toElem(p); | 1174 DValue* e = exp->toElem(p); |
1175 assert(!wthis->ir.isSet()); | 1175 |
1176 wthis->ir.irLocal = new IrLocal(wthis); | 1176 DtoDeclarationExp(wthis); |
1177 wthis->ir.irLocal->value = DtoAlloca(DtoType(wthis->type), wthis->toChars()); | |
1178 DtoStore(e->getRVal(), wthis->ir.irLocal->value); | 1177 DtoStore(e->getRVal(), wthis->ir.irLocal->value); |
1179 | 1178 |
1180 body->toIR(p); | 1179 body->toIR(p); |
1181 } | 1180 } |
1182 | 1181 |