mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 02:45:25 +03:00
Fix more duplicate static array postblit calls
This commit is contained in:
parent
daee7955d5
commit
d2135d4ade
2 changed files with 5 additions and 3 deletions
|
@ -787,8 +787,8 @@ void DtoCatAssignElement(Loc& loc, Type* arrayType, DValue* array, Expression* e
|
|||
appendedArray = DtoAggrPaint(appendedArray, DtoType(arrayType));
|
||||
|
||||
LLValue* val = DtoArrayPtr(array);
|
||||
val = DtoGEP1(val, oldLength, "lastElem");
|
||||
DtoAssign(loc, new DVarValue(arrayType->nextOf(), val), expVal);
|
||||
val = DtoGEP1(val, oldLength, ".lastElem");
|
||||
DtoAssign(loc, new DVarValue(arrayType->nextOf(), val), expVal, TOKblit);
|
||||
callPostblit(loc, exp, val);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue