summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-06-23 06:24:52 +0000
committerEric Christopher <echristo@apple.com>2011-06-23 06:24:52 +0000
commit96513120b73821726d0e33f2a64afbe464cd8b74 (patch)
treebb51f3ebc9ee79cd1dfc742611d26577244684cc /llvm/lib/Transforms/Utils/CloneFunction.cpp
parentb0d8199925611f010f87a5c1450d054b4ab9293e (diff)
downloadbcm5719-llvm-96513120b73821726d0e33f2a64afbe464cd8b74.tar.gz
bcm5719-llvm-96513120b73821726d0e33f2a64afbe464cd8b74.zip
Revert r133513:
"Reinstate r133435 and r133449 (reverted in r133499) now that the clang self-hosted build failure has been fixed (r133512)." Due to some additional warnings. llvm-svn: 133700
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 561b69dd1ee..d967ceb9685 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -572,12 +572,12 @@ void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
// removed, so we just need to splice the blocks.
BI->eraseFromParent();
- // Make all PHI nodes that referred to Dest now refer to I as their source.
- Dest->replaceAllUsesWith(I);
-
// Move all the instructions in the succ to the pred.
I->getInstList().splice(I->end(), Dest->getInstList());
+ // Make all PHI nodes that referred to Dest now refer to I as their source.
+ Dest->replaceAllUsesWith(I);
+
// Remove the dest block.
Dest->eraseFromParent();
OpenPOWER on IntegriCloud