aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopRotation.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/LoopRotation.cpp
parentb56e1ab03368a470159bb7b31c4d96bc016a1cda (diff)
downloadllvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.zip
llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.tar.gz
llvm-42fb7452dfbc20c31c97c2d88ef5e6019323377a.tar.bz2
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/LoopRotation.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopRotation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopRotation.cpp b/llvm/lib/Transforms/Scalar/LoopRotation.cpp
index ca394bd..34ba48c 100644
--- a/llvm/lib/Transforms/Scalar/LoopRotation.cpp
+++ b/llvm/lib/Transforms/Scalar/LoopRotation.cpp
@@ -237,7 +237,7 @@ bool LoopRotate::rotateLoop(Loop *Lp, LPPassManager &LPM) {
// This is not a PHI instruction. Insert its clone into original pre-header.
// If this instruction is using a value from same basic block then
// update it to use value from cloned instruction.
- Instruction *C = In->clone(In->getContext());
+ Instruction *C = In->clone();
C->setName(In->getName());
OrigPreHeader->getInstList().push_back(C);