[llvm] r246899 - Fix build warning
Andrew Kaylor via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 16:58:32 PDT 2015
Author: akaylor
Date: Fri Sep 4 18:58:32 2015
New Revision: 246899
URL: http://llvm.org/viewvc/llvm-project?rev=246899&view=rev
Log:
Fix build warning
Modified:
llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
Modified: llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp?rev=246899&r1=246898&r2=246899&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/SimplifyCFG.cpp Fri Sep 4 18:58:32 2015
@@ -3092,8 +3092,6 @@ bool SimplifyCFGOpt::SimplifyCleanupRetu
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::SimplifyCleanupRetu
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.");
}
More information about the llvm-commits
mailing list