mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-04 02:18:46 +00:00
Fix bug: Transforms/PruneEH/2003-11-21-PHIUpdate.llx
llvm-svn: 10163
This commit is contained in:
parent
916c27ba4d
commit
87e444b65b
@ -91,12 +91,14 @@ bool PruneEH::runOnSCC(const std::vector<CallGraphNode *> &SCC) {
|
||||
// Anything that used the value produced by the invoke instruction
|
||||
// now uses the value produced by the call instruction.
|
||||
II->replaceAllUsesWith(Call);
|
||||
II->getExceptionalDest()->removePredecessor(II->getParent());
|
||||
|
||||
// Insert a branch to the normal destination right before the
|
||||
// invoke.
|
||||
new BranchInst(II->getNormalDest(), II);
|
||||
|
||||
// Finally, delete the invoke instruction!
|
||||
|
||||
I->getInstList().pop_back();
|
||||
|
||||
++NumRemoved;
|
||||
|
Loading…
x
Reference in New Issue
Block a user