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 | 6070c017ba421c2862fc0c25d9770169e858c7e3 (patch) | |
tree | 9c3af8482a1eab3d262715e590726e5acf675951 /lib/Transforms/Scalar/ConstantProp.cpp | |
parent | 3209d11ed21bf3bc4e82a55509cfcc17f18fb6e4 (diff) | |
download | external_llvm-6070c017ba421c2862fc0c25d9770169e858c7e3.zip external_llvm-6070c017ba421c2862fc0c25d9770169e858c7e3.tar.gz external_llvm-6070c017ba421c2862fc0c25d9770169e858c7e3.tar.bz2 |
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 4fee327..ea20813 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(); |