From: David Majnemer Date: Sun, 4 Oct 2015 18:44:47 +0000 (+0000) Subject: [SelectionDAGBuilder] Remove dead code X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c31176a60804d4d6310c69d55756aafcd81a5237;p=oota-llvm.git [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 --- 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]);