mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 00:55:49 +03:00
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:
parent
202c4f7bc2
commit
180487b614
4 changed files with 29 additions and 13 deletions
|
@ -1137,7 +1137,7 @@ DValue* DtoDeclarationExp(Dsymbol* declaration)
|
|||
Logger::println("has nestedref set");
|
||||
assert(vd->ir.irLocal);
|
||||
|
||||
// alloca as usual is no value already
|
||||
// alloca as usual if no value already
|
||||
if (!vd->ir.irLocal->value)
|
||||
{
|
||||
vd->ir.irLocal->value = DtoAlloca(DtoType(vd->type), vd->toChars());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue