[WinEH] Make FuncletLayout more robust against catchret
[oota-llvm.git] / lib / CodeGen / BranchFolding.cpp
index f990e10086431173b017c85a6171942b3440c648..2ef8889091f1eeb1cd380917608352bf4c48ca4d 100644 (file)
@@ -976,7 +976,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) {
         continue;
 
       // Skip blocks which may jump to a landing pad. Can't tail merge these.
-      if (PBB->getLandingPadSuccessor())
+      if (PBB->hasEHPadSuccessor())
         continue;
 
       MachineBasicBlock *TBB = nullptr, *FBB = nullptr;