forked from OSchip/llvm-project
A block dominates itself, by definition.
llvm-svn: 109402
This commit is contained in:
parent
65b257c9d2
commit
f9da3c3b88
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue