mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-14 02:43:23 +01:00
Resolving nested context for structs.
* * * Another fix for nested structs * * * Yet another fix for nested structs
This commit is contained in:
@@ -1694,6 +1694,10 @@ DValue* NewExp::toElem(IRState* p)
|
||||
ts->sym->codegen(Type::sir);
|
||||
DtoAggrCopy(mem, ts->sym->ir.irStruct->getInitSymbol());
|
||||
}
|
||||
#if DMDV2
|
||||
if (ts->sym->isNested() && ts->sym->vthis)
|
||||
DtoResolveNestedContext(loc, ts->sym, mem);
|
||||
#endif
|
||||
return new DImValue(type, mem);
|
||||
}
|
||||
// new basic type
|
||||
|
||||
Reference in New Issue
Block a user