Mercurial > projects > ldc
comparison gen/toir.c @ 48:4d171915a77b trunk
[svn r52] fixed static arrays in struct literals
author | lindquist |
---|---|
date | Fri, 19 Oct 2007 17:15:30 +0200 |
parents | 6d60e6049c4e |
children | e5c4bece7fa1 |
comparison
equal
deleted
inserted
replaced
47:6d60e6049c4e | 48:4d171915a77b |
---|---|
1514 TypeStruct* ts = (TypeStruct*)vxtype; | 1514 TypeStruct* ts = (TypeStruct*)vxtype; |
1515 LLVM_DtoStructCopy(ts,arrptr,val); | 1515 LLVM_DtoStructCopy(ts,arrptr,val); |
1516 } | 1516 } |
1517 else if (vxtype->ty == Tarray) { | 1517 else if (vxtype->ty == Tarray) { |
1518 LLVM_DtoArrayAssign(arrptr,val); | 1518 LLVM_DtoArrayAssign(arrptr,val); |
1519 } | |
1520 else if (vxtype->ty == Tsarray) { | |
1521 LLVM_DtoStaticArrayCopy(arrptr,val); | |
1519 } | 1522 } |
1520 else | 1523 else |
1521 new llvm::StoreInst(val, arrptr, p->scopebb()); | 1524 new llvm::StoreInst(val, arrptr, p->scopebb()); |
1522 } | 1525 } |
1523 delete ve; | 1526 delete ve; |