summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-06 04:27:31 +0000
committerChris Lattner <sabre@nondot.org>2009-11-06 04:27:31 +0000
commit46b5c642b9baca354ba18f3dbb37f4020848d0f3 (patch)
tree68fd5d94ef426e6da66de84d531927c89fa220fb /llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
parent421a5c9651232f5553658f57603ce8e61ef28748 (diff)
downloadbcm5719-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/LoopUnswitch.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopUnswitch.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
index be8366d98c4..38d267aa6b8 100644
--- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
@@ -32,7 +32,6 @@
#include "llvm/DerivedTypes.h"
#include "llvm/Function.h"
#include "llvm/Instructions.h"
-#include "llvm/LLVMContext.h"
#include "llvm/Analysis/ConstantFolding.h"
#include "llvm/Analysis/InlineCost.h"
#include "llvm/Analysis/LoopInfo.h"
@@ -961,7 +960,7 @@ void LoopUnswitch::SimplifyCode(std::vector<Instruction*> &Worklist, Loop *L) {
Worklist.pop_back();
// Simple constant folding.
- if (Constant *C = ConstantFoldInstruction(I, I->getContext())) {
+ if (Constant *C = ConstantFoldInstruction(I)) {
ReplaceUsesOfWith(I, C, Worklist, L, LPM);
continue;
}
OpenPOWER on IntegriCloud