diff options
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 534c738f832..1834b813453 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -3092,8 +3092,6 @@ bool SimplifyCFGOpt::SimplifyCleanupReturn(CleanupReturnInst *RI) { NewTPI->takeName(TPI); NewTPI->setDebugLoc(TPI->getDebugLoc()); TPI->eraseFromParent(); - } else if (auto *CPI = dyn_cast<CatchPadInst>(TI)) { - llvm_unreachable("A catchpad may not unwind to a cleanuppad."); } else { llvm_unreachable("Unexpected predecessor to cleanup pad."); } @@ -3111,8 +3109,6 @@ bool SimplifyCFGOpt::SimplifyCleanupReturn(CleanupReturnInst *RI) { CEP->setUnwindDest(UnwindDest); else if (auto *TPI = dyn_cast<TerminatePadInst>(TI)) TPI->setUnwindDest(UnwindDest); - else if (auto *CPI = dyn_cast<CatchPadInst>(TI)) - llvm_unreachable("A catchpad may not unwind to a cleanuppad."); else llvm_unreachable("Unexpected predecessor to cleanup pad."); } |