diff options
Diffstat (limited to 'lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index f65a716711..4223c7f481 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -131,11 +131,11 @@ bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) { } else { Value *Scale = MI->getOperand(0); if (Scale->getType() != IntPtrTy) - Scale = CastInst::createIntegerCast(Scale, IntPtrTy, false /*ZExt*/, + Scale = CastInst::CreateIntegerCast(Scale, IntPtrTy, false /*ZExt*/, "", I); // Multiply it by the array size if necessary... - MallocArg = BinaryOperator::create(Instruction::Mul, Scale, + MallocArg = BinaryOperator::Create(Instruction::Mul, Scale, MallocArg, "", I); } } |