From: Dan Gohman Date: Mon, 26 Jul 2010 17:38:15 +0000 (+0000) Subject: A block dominates itself, by definition. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ce0fe5da0d69dfd332084b9f2c159c8f06f534e0;p=oota-llvm.git A block dominates itself, by definition. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109402 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/DwarfEHPrepare.cpp b/lib/CodeGen/DwarfEHPrepare.cpp index da2021ae1b4..425d57e60b1 100644 --- a/lib/CodeGen/DwarfEHPrepare.cpp +++ b/lib/CodeGen/DwarfEHPrepare.cpp @@ -338,7 +338,7 @@ bool DwarfEHPrepare::HandleURoRInvokes() { for (SmallPtrSet::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; }