summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-06 18:42:36 +0000
committerOwen Anderson <resistor@mac.com>2009-07-06 18:42:36 +0000
commit39f00cc1d459f02d3a1c115b40d7560f93b22908 (patch)
tree98282993fa2ebf9ea18d22abf5f59320cc4cfb50 /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parent0578e4386296e7c59efe99499af6878f33ff3bb4 (diff)
downloadbcm5719-llvm-39f00cc1d459f02d3a1c115b40d7560f93b22908.tar.gz
bcm5719-llvm-39f00cc1d459f02d3a1c115b40d7560f93b22908.zip
Thread LLVMContext through the constant folding APIs, which touches a lot of files.
llvm-svn: 74844
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index dee7bfba21d..22520423205 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -982,7 +982,7 @@ bool JumpThreading::ThreadEdge(BasicBlock *BB, BasicBlock *PredBB,
BI = NewBB->begin();
for (BasicBlock::iterator E = NewBB->end(); BI != E; ) {
Instruction *Inst = BI++;
- if (Constant *C = ConstantFoldInstruction(Inst, TD)) {
+ if (Constant *C = ConstantFoldInstruction(Inst, BB->getContext(), TD)) {
Inst->replaceAllUsesWith(C);
Inst->eraseFromParent();
continue;
OpenPOWER on IntegriCloud