This commit is contained in:
Tomas Lindquist Olsen
2009-02-02 00:26:32 +01:00
parent e6ef3ecf15
commit 98974b02c0

View File

@@ -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]);
}
}