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/ConstantProp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp') diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp index b933488cf63..d92ebdae66b 100644 --- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp +++ b/llvm/lib/Transforms/Scalar/ConstantProp.cpp @@ -67,7 +67,7 @@ bool ConstantPropagation::runOnFunction(Function &F) { WorkList.erase(WorkList.begin()); // Get an element from the worklist... if (!I->use_empty()) // Don't muck with dead instructions... - if (Constant *C = ConstantFoldInstruction(I)) { + if (Constant *C = ConstantFoldInstruction(I, Context)) { // Add all of the users of this instruction to the worklist, they might // be constant propagatable now... for (Value::use_iterator UI = I->use_begin(), UE = I->use_end(); -- cgit v1.2.3