From 39f00cc1d459f02d3a1c115b40d7560f93b22908 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Mon, 6 Jul 2009 18:42:36 +0000 Subject: Thread LLVMContext through the constant folding APIs, which touches a lot of files. llvm-svn: 74844 --- llvm/lib/Transforms/Scalar/TailDuplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/TailDuplication.cpp') diff --git a/llvm/lib/Transforms/Scalar/TailDuplication.cpp b/llvm/lib/Transforms/Scalar/TailDuplication.cpp index c037ee96031..06815d29b2d 100644 --- a/llvm/lib/Transforms/Scalar/TailDuplication.cpp +++ b/llvm/lib/Transforms/Scalar/TailDuplication.cpp @@ -358,7 +358,7 @@ void TailDup::eliminateUnconditionalBranch(BranchInst *Branch) { Instruction *Inst = BI++; if (isInstructionTriviallyDead(Inst)) Inst->eraseFromParent(); - else if (Constant *C = ConstantFoldInstruction(Inst)) { + else if (Constant *C = ConstantFoldInstruction(Inst, Context)) { Inst->replaceAllUsesWith(C); Inst->eraseFromParent(); } -- cgit v1.2.3