From c31176a60804d4d6310c69d55756aafcd81a5237 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sun, 4 Oct 2015 18:44:47 +0000 Subject: [PATCH] [SelectionDAGBuilder] Remove dead code We already check for LandingPadInst two lines above. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249280 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index f779fd1b03a..d498c547bfd 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -1215,7 +1215,7 @@ findUnwindDestinations(FunctionLoweringInfo &FuncInfo, // Stop on landingpads. They are not funclets. UnwindDests.push_back(FuncInfo.MBBMap[EHPadBB]); break; - } else if (isa(Pad) || isa(Pad)) { + } else if (isa(Pad)) { // Stop on cleanup pads. Cleanups are always funclet entries for all known // personalities. UnwindDests.push_back(FuncInfo.MBBMap[EHPadBB]); -- 2.34.1