A block dominates itself, by definition.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109402 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-07-26 17:38:15 +00:00
parent b7aa26bbdb
commit ce0fe5da0d

View 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;
}