comparison gen/llvmhelpers.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 b411c41a9716
children b972fb129d37
comparison
equal deleted inserted replaced
703:06576ece1a1b 704:43165a082535
1135 // referenced by nested delegate? 1135 // referenced by nested delegate?
1136 if (vd->nestedref) { 1136 if (vd->nestedref) {
1137 Logger::println("has nestedref set"); 1137 Logger::println("has nestedref set");
1138 assert(vd->ir.irLocal); 1138 assert(vd->ir.irLocal);
1139 1139
1140 // alloca as usual is no value already 1140 // alloca as usual if no value already
1141 if (!vd->ir.irLocal->value) 1141 if (!vd->ir.irLocal->value)
1142 { 1142 {
1143 vd->ir.irLocal->value = DtoAlloca(DtoType(vd->type), vd->toChars()); 1143 vd->ir.irLocal->value = DtoAlloca(DtoType(vd->type), vd->toChars());
1144 } 1144 }
1145 1145