[svn r301] Fixed incorrect codegen with array slice assigns.

This commit is contained in:
Christian Kamm
2008-06-20 23:27:59 +02:00
parent baf0bdeac6
commit 87f6a4fa41

View File

@@ -364,7 +364,7 @@ static LLValue* get_slice_ptr(DSliceValue* e, LLValue*& sz)
// this means it's a real slice
ret = e->ptr;
size_t elembsz = getABITypeSize(ret->getType());
size_t elembsz = getABITypeSize(ret->getType()->getContainedType(0));
llvm::ConstantInt* elemsz = llvm::ConstantInt::get(DtoSize_t(), elembsz, false);
if (isaConstantInt(e->len)) {