From b1b15ace485583be8309cee38f94fb3f54f3a990 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Fri, 4 Sep 2015 23:58:32 +0000 Subject: [PATCH] Fix build warning git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246899 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Utils/SimplifyCFG.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 534c738f832..1834b813453 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/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(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(TI)) TPI->setUnwindDest(UnwindDest); - else if (auto *CPI = dyn_cast(TI)) - llvm_unreachable("A catchpad may not unwind to a cleanuppad."); else llvm_unreachable("Unexpected predecessor to cleanup pad."); } -- 2.34.1