mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 00:20:40 +03:00
Fixed creating of arrays of immutable types
This commit is contained in:
parent
9103800334
commit
6b1243cec2
1 changed files with 2 additions and 2 deletions
|
@ -442,7 +442,7 @@ DSliceValue* DtoNewDynArray(Loc& loc, Type* arrayType, DValue* dim, bool default
|
|||
LOG_SCOPE;
|
||||
|
||||
// typeinfo arg
|
||||
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType);
|
||||
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType->mutableOf()->merge2());
|
||||
|
||||
// dim arg
|
||||
assert(DtoType(dim->getType()) == DtoSize_t());
|
||||
|
@ -493,7 +493,7 @@ DSliceValue* DtoNewMulDimDynArray(Loc& loc, Type* arrayType, DValue** dims, size
|
|||
LOG_SCOPE;
|
||||
|
||||
// typeinfo arg
|
||||
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType);
|
||||
LLValue* arrayTypeInfo = DtoTypeInfoOf(arrayType->mutableOf()->merge2());
|
||||
|
||||
// get value type
|
||||
Type* vtype = arrayType->toBasetype();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue