summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LowerAllocations.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-16 19:29:10 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-16 19:29:10 +0000
commite1f6e4b21d7e3067dc733b0d9676709fff584119 (patch)
treead4b82236a5292607dbf46ac6733c27bf8dfe097 /llvm/lib/Transforms/Utils/LowerAllocations.cpp
parent9800faa57866d82ebad291a0f828f9d3aa7faddf (diff)
downloadbcm5719-llvm-e1f6e4b21d7e3067dc733b0d9676709fff584119.tar.gz
bcm5719-llvm-e1f6e4b21d7e3067dc733b0d9676709fff584119.zip
API change for {BinaryOperator|CmpInst|CastInst}::create*() --> Create. Legacy interfaces will be in place for some time. (Merge from use-diet branch.)
llvm-svn: 51200
Diffstat (limited to 'llvm/lib/Transforms/Utils/LowerAllocations.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LowerAllocations.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/LowerAllocations.cpp b/llvm/lib/Transforms/Utils/LowerAllocations.cpp
index f65a716711b..4223c7f4813 100644
--- a/llvm/lib/Transforms/Utils/LowerAllocations.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud