From e525d9ddc082b3bb4a3017795c261996599850b2 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Mon, 5 Oct 2009 16:36:26 +0000 Subject: Remove an unnnecessary LLVMContext argument in ConstantFoldLoadThroughGEPConstantExpr. llvm-svn: 83311 --- llvm/lib/Transforms/Utils/CloneFunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp') 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(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); -- cgit v1.2.3