mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-06 06:53:16 +01:00
Fixed regressions
This commit is contained in:
@@ -485,6 +485,12 @@ LLValue* DtoNestedVariable(VarDeclaration* vd)
|
||||
LLValue* ptr = DtoNestedContext(func);
|
||||
assert(ptr && "nested var, but no context");
|
||||
|
||||
// if there is no nestedVar the context itself is what we're after
|
||||
if (!func->ir.irFunc->nestedVar)
|
||||
{
|
||||
return ptr;
|
||||
}
|
||||
|
||||
// handle a "normal" nested variable
|
||||
|
||||
// we must cast here to be sure. nested classes just have a void*
|
||||
|
||||
Reference in New Issue
Block a user