From a212aba6804f80167a3665b252a558383cdf8262 Mon Sep 17 00:00:00 2001 From: Andrew Kaylor Date: Fri, 4 Sep 2015 23:58:32 +0000 Subject: Fix build warning llvm-svn: 246899 --- llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib') 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(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."); } -- cgit v1.2.3