mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 15:40:55 +03:00
Remove getContainedType
from DtoArrayAssign
(#4165)
This commit is contained in:
parent
fc979b36c1
commit
a94262f509
1 changed files with 1 additions and 1 deletions
|
@ -293,7 +293,7 @@ void DtoArrayAssign(const Loc &loc, DValue *lhs, DValue *rhs, EXP op,
|
||||||
if (!needsDestruction && !needsPostblit) {
|
if (!needsDestruction && !needsPostblit) {
|
||||||
// fast version
|
// fast version
|
||||||
const size_t lhsElementSize =
|
const size_t lhsElementSize =
|
||||||
getTypeAllocSize(realLhsPtr->getType()->getContainedType(0));
|
getTypeAllocSize(DtoMemType(lhs->type->nextOf()));
|
||||||
LLType *rhsType = DtoMemType(t2);
|
LLType *rhsType = DtoMemType(t2);
|
||||||
const size_t rhsSize = getTypeAllocSize(rhsType);
|
const size_t rhsSize = getTypeAllocSize(rhsType);
|
||||||
LLValue *actualPtr = DtoBitCast(realLhsPtr, rhsType->getPointerTo());
|
LLValue *actualPtr = DtoBitCast(realLhsPtr, rhsType->getPointerTo());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue