diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-16 22:49:40 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2012-07-16 22:49:40 +0000 |
| commit | 482fb19fd52d2f1c3817d475bbe7d7df532fe1c4 (patch) | |
| tree | 4a957b64736c982f177bb04cad662aff428fc80c /llvm/lib | |
| parent | aa9f35a6b64a825b5432abaedc84e71e70d22292 (diff) | |
| download | bcm5719-llvm-482fb19fd52d2f1c3817d475bbe7d7df532fe1c4.tar.gz bcm5719-llvm-482fb19fd52d2f1c3817d475bbe7d7df532fe1c4.zip | |
fix PR13339 (remove the predecessor from the unwind BB when removing an invoke)
llvm-svn: 160325
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp index 91158b429ea..99e236f5433 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyCFGPass.cpp @@ -165,6 +165,7 @@ static bool MarkAliveBlocks(BasicBlock *BB, if (II->use_empty() && II->onlyReadsMemory()) { // jump to the normal destination branch. BranchInst::Create(II->getNormalDest(), II); + II->getUnwindDest()->removePredecessor(II->getParent()); II->eraseFromParent(); } else ChangeToCall(II); |

