diff options
author | Andrew Kaylor <andrew.kaylor@intel.com> | 2015-09-04 23:58:32 +0000 |
---|---|---|
committer | Andrew Kaylor <andrew.kaylor@intel.com> | 2015-09-04 23:58:32 +0000 |
commit | a212aba6804f80167a3665b252a558383cdf8262 (patch) | |
tree | 13912d91282d92af461d93a8a4be54ca1b8f8783 /llvm/lib/Transforms | |
parent | 4dd71045495a09e3ae2d9552ac2cde129d0ab21f (diff) | |
download | bcm5719-llvm-a212aba6804f80167a3665b252a558383cdf8262.tar.gz bcm5719-llvm-a212aba6804f80167a3665b252a558383cdf8262.zip |
Fix build warning
llvm-svn: 246899
Diffstat (limited to 'llvm/lib/Transforms')
-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."); } |