mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
arrays: TOKblit assignments never invoke postblit
This commit is contained in:
parent
ad2546c6b0
commit
63337b278a
1 changed files with 1 additions and 1 deletions
|
@ -257,7 +257,7 @@ void DtoArrayAssign(Loc& loc, DValue* lhs, DValue* rhs, int op, bool canSkipPost
|
|||
|
||||
Type* const elemType = t->nextOf()->toBasetype();
|
||||
const bool needsDestruction = (!isConstructing && elemType->needsDestruction());
|
||||
const bool needsPostblit = (!canSkipPostblit && arrayNeedsPostblit(t));
|
||||
const bool needsPostblit = (op != TOKblit && !canSkipPostblit && arrayNeedsPostblit(t));
|
||||
|
||||
LLValue* lhsPtr = DtoBitCast(DtoArrayPtr(lhs), getVoidPtrType());
|
||||
LLValue* lhsLength = DtoArrayLen(lhs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue