A block dominates itself, by definition.

llvm-svn: 109402
This commit is contained in:
Dan Gohman 2010-07-26 17:38:15 +00:00
parent 65b257c9d2
commit f9da3c3b88
1 changed files with 1 additions and 1 deletions

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