summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorAndrew Kaylor <andrew.kaylor@intel.com>2015-09-04 23:58:32 +0000
committerAndrew Kaylor <andrew.kaylor@intel.com>2015-09-04 23:58:32 +0000
commita212aba6804f80167a3665b252a558383cdf8262 (patch)
tree13912d91282d92af461d93a8a4be54ca1b8f8783 /llvm/lib/Transforms
parent4dd71045495a09e3ae2d9552ac2cde129d0ab21f (diff)
downloadbcm5719-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.cpp4
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.");
}
OpenPOWER on IntegriCloud