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 | 46b5c642b9baca354ba18f3dbb37f4020848d0f3 (patch) | |
tree | 68fd5d94ef426e6da66de84d531927c89fa220fb /llvm/lib/Transforms/Scalar/ConstantProp.cpp | |
parent | 421a5c9651232f5553658f57603ce8e61ef28748 (diff) | |
download | bcm5719-llvm-46b5c642b9baca354ba18f3dbb37f4020848d0f3.tar.gz bcm5719-llvm-46b5c642b9baca354ba18f3dbb37f4020848d0f3.zip |
remove a bunch of extraneous LLVMContext arguments
from various APIs, addressing PR5325.
llvm-svn: 86231
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ConstantProp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp index 4fee327ebec..ea208135739 100644 --- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp +++ b/llvm/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(); |