mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
Remove getContainedType
from DtoMemSetZero
(#4157)
This commit is contained in:
parent
a433746018
commit
838146be71
5 changed files with 14 additions and 12 deletions
|
@ -254,7 +254,7 @@ void DtoArrayAssign(const Loc &loc, DValue *lhs, DValue *rhs, EXP op,
|
|||
const size_t elementSize = getTypeAllocSize(DtoMemType(elemType));
|
||||
if (rhs->isNull()) {
|
||||
LLValue *lhsSize = computeSize(lhsLength, elementSize);
|
||||
DtoMemSetZero(lhsPtr, lhsSize);
|
||||
DtoMemSetZero(getI8Type(), lhsPtr, lhsSize);
|
||||
} else {
|
||||
bool knownInBounds =
|
||||
isConstructing || (t->ty == TY::Tsarray && t2->ty == TY::Tsarray);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue