summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-10-05 16:36:26 +0000
committerDan Gohman <gohman@apple.com>2009-10-05 16:36:26 +0000
commite525d9ddc082b3bb4a3017795c261996599850b2 (patch)
treee840adc8c06256f53e44d25486f696d3abefed8b /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent238cf498127952f2acb62850d7da47bb98a4e1f8 (diff)
downloadbcm5719-llvm-e525d9ddc082b3bb4a3017795c261996599850b2.tar.gz
bcm5719-llvm-e525d9ddc082b3bb4a3017795c261996599850b2.zip
Remove an unnnecessary LLVMContext argument in
ConstantFoldLoadThroughGEPConstantExpr. llvm-svn: 83311
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index f042bc9f22c..30130fa0a12 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -346,7 +346,7 @@ ConstantFoldMappedInstruction(const Instruction *I) {
if (GlobalVariable *GV = dyn_cast<GlobalVariable>(CE->getOperand(0)))
if (GV->isConstant() && GV->hasDefinitiveInitializer())
return ConstantFoldLoadThroughGEPConstantExpr(GV->getInitializer(),
- CE, Context);
+ CE);
return ConstantFoldInstOperands(I->getOpcode(), I->getType(), &Ops[0],
Ops.size(), Context, TD);
OpenPOWER on IntegriCloud