diff options
author | Chris Lattner <sabre@nondot.org> | 2009-11-06 04:27:31 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-11-06 04:27:31 +0000 |
commit | 7b550ccfc5a3346c17e0390a59e2d6d19bc52705 (patch) | |
tree | 9c3af8482a1eab3d262715e590726e5acf675951 /lib/Transforms/Scalar/ConstantProp.cpp | |
parent | 6580da4755cf98aa9b0c32186536e80d7dd41f90 (diff) |
remove a bunch of extraneous LLVMContext arguments
from various APIs, addressing PR5325.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ConstantProp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp index 4fee327ebe..ea20813573 100644 --- a/lib/Transforms/Scalar/ConstantProp.cpp +++ b/lib/Transforms/Scalar/ConstantProp.cpp @@ -66,7 +66,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, F.getContext())) { + if (Constant *C = ConstantFoldInstruction(I)) { // 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(); |