mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 18:34:09 +00:00
Fit in 80 columns
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86316 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9beab3fe6f
commit
4d81d97a06
@ -465,9 +465,11 @@ static Instruction *createMalloc(Instruction *InsertBefore,
|
|||||||
ArraySize = ConstantInt::get(IntPtrTy, 1);
|
ArraySize = ConstantInt::get(IntPtrTy, 1);
|
||||||
else if (ArraySize->getType() != IntPtrTy) {
|
else if (ArraySize->getType() != IntPtrTy) {
|
||||||
if (InsertBefore)
|
if (InsertBefore)
|
||||||
ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, "", InsertBefore);
|
ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
|
||||||
|
"", InsertBefore);
|
||||||
else
|
else
|
||||||
ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false, "", InsertAtEnd);
|
ArraySize = CastInst::CreateIntegerCast(ArraySize, IntPtrTy, false,
|
||||||
|
"", InsertAtEnd);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!IsConstantOne(ArraySize)) {
|
if (!IsConstantOne(ArraySize)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user