[svn r51] dynamic array members in struct literals was broken

This commit is contained in:
Tomas Lindquist Olsen
2007-10-19 17:00:35 +02:00
parent 114f4bd0a5
commit cca32e4efd

View File

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