comparison gen/toir.c @ 47:6d60e6049c4e trunk

[svn r51] dynamic array members in struct literals was broken
author lindquist
date Fri, 19 Oct 2007 17:00:35 +0200
parents ea65e12b0dd0
children 4d171915a77b
comparison
equal deleted inserted replaced
46:6a54b832369a 47:6d60e6049c4e
1511 1511
1512 Type* vxtype = LLVM_DtoDType(vx->type); 1512 Type* vxtype = LLVM_DtoDType(vx->type);
1513 if (vxtype->ty == Tstruct) { 1513 if (vxtype->ty == Tstruct) {
1514 TypeStruct* ts = (TypeStruct*)vxtype; 1514 TypeStruct* ts = (TypeStruct*)vxtype;
1515 LLVM_DtoStructCopy(ts,arrptr,val); 1515 LLVM_DtoStructCopy(ts,arrptr,val);
1516 }
1517 else if (vxtype->ty == Tarray) {
1518 LLVM_DtoArrayAssign(arrptr,val);
1516 } 1519 }
1517 else 1520 else
1518 new llvm::StoreInst(val, arrptr, p->scopebb()); 1521 new llvm::StoreInst(val, arrptr, p->scopebb());
1519 } 1522 }
1520 delete ve; 1523 delete ve;