mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fix bug #199
This commit is contained in:
@@ -2403,6 +2403,10 @@ DValue* StructLiteralExp::toElem(IRState* p)
|
||||
{
|
||||
DValue* v = exprs[i]->toElem(p);
|
||||
inits[i] = v->getRVal();
|
||||
|
||||
// make sure we get inner structs/staticarrays right
|
||||
if (DtoIsPassedByRef(v->getType()))
|
||||
inits[i] = DtoLoad(inits[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user