Reverted rev.1710 and rev.1711

This commit is contained in:
Alexey Prokhin
2010-11-04 17:58:27 +03:00
parent fbb36404d9
commit 88d7b955c8
2 changed files with 27 additions and 42 deletions

View File

@@ -440,7 +440,7 @@ DSliceValue* DtoNewDynArray(Loc& loc, Type* arrayType, DValue* dim, bool default
LOG_SCOPE;
// typeinfo arg
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType->mutableOf()->merge2());
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType);
// dim arg
assert(DtoType(dim->getType()) == DtoSize_t());
@@ -491,7 +491,7 @@ DSliceValue* DtoNewMulDimDynArray(Loc& loc, Type* arrayType, DValue** dims, size
LOG_SCOPE;
// typeinfo arg
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType->mutableOf()->merge2());
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType);
// get value type
Type* vtype = arrayType->toBasetype();