mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
[svn r51] dynamic array members in struct literals was broken
This commit is contained in:
@@ -1514,6 +1514,9 @@ elem* StructLiteralExp::toElem(IRState* p)
|
||||
TypeStruct* ts = (TypeStruct*)vxtype;
|
||||
LLVM_DtoStructCopy(ts,arrptr,val);
|
||||
}
|
||||
else if (vxtype->ty == Tarray) {
|
||||
LLVM_DtoArrayAssign(arrptr,val);
|
||||
}
|
||||
else
|
||||
new llvm::StoreInst(val, arrptr, p->scopebb());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user