diff options
| author | Chad Rosier <mcrosier@apple.com> | 2011-06-21 02:09:03 +0000 |
|---|---|---|
| committer | Chad Rosier <mcrosier@apple.com> | 2011-06-21 02:09:03 +0000 |
| commit | 184f3b37e2a6812c647c2614613a9eebfe33247b (patch) | |
| tree | c716044e0e18ef2e5a91d6daa7286896d80d38b5 /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
| parent | fe356d356ad411306d360da58c9b5fef1175fc95 (diff) | |
| download | llvm-184f3b37e2a6812c647c2614613a9eebfe33247b.zip llvm-184f3b37e2a6812c647c2614613a9eebfe33247b.tar.gz llvm-184f3b37e2a6812c647c2614613a9eebfe33247b.tar.bz2 | |
Revert r133435 and r133449 to appease buildbots.
llvm-svn: 133499
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index 561b69d..d967ceb 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(); |
