summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2009-09-27 07:38:41 +0000
committerNick Lewycky <nicholas@mxc.ca>2009-09-27 07:38:41 +0000
commit42fb7452dfbc20c31c97c2d88ef5e6019323377a (patch)
tree9916e929fa89b09b0203aa80e5139da35bb63dae /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parentb56e1ab03368a470159bb7b31c4d96bc016a1cda (diff)
downloadbcm5719-llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.tar.gz
bcm5719-llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.zip
Instruction::clone does not need to take an LLVMContext&. Remove that and
update all the callers. llvm-svn: 82889
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 559b8cb72a9..21b6cebca56 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -934,7 +934,7 @@ bool JumpThreading::ThreadEdge(BasicBlock *BB, BasicBlock *PredBB,
// Clone the non-phi instructions of BB into NewBB, keeping track of the
// mapping and using it to remap operands in the cloned instructions.
for (; !isa<TerminatorInst>(BI); ++BI) {
- Instruction *New = BI->clone(BI->getContext());
+ Instruction *New = BI->clone();
New->setName(BI->getName());
NewBB->getInstList().push_back(New);
ValueMapping[BI] = New;
OpenPOWER on IntegriCloud