diff --git a/gen/toir.c b/gen/toir.c index 8845c8d5..a9f6caf4 100644 --- a/gen/toir.c +++ b/gen/toir.c @@ -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()); }