A block dominates itself, by definition.
authorDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 17:38:15 +0000 (17:38 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 26 Jul 2010 17:38:15 +0000 (17:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109402 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/DwarfEHPrepare.cpp

index da2021ae1b411da2ce666e7dc948520fe479267a..425d57e60b1f26513a48a9602632653200aa20dc 100644 (file)
@@ -338,7 +338,7 @@ bool DwarfEHPrepare::HandleURoRInvokes() {
     for (SmallPtrSet<InvokeInst*, 32>::iterator
            UI = URoRInvokes.begin(), UE = URoRInvokes.end(); UI != UE; ++UI) {
       const BasicBlock *URoRBB = (*UI)->getParent();
-      if (SelBB == URoRBB || DT->dominates(SelBB, URoRBB)) {
+      if (DT->dominates(SelBB, URoRBB)) {
         SelsToConvert.insert(*SI);
         break;
       }