mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
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:
parent
b7aa26bbdb
commit
ce0fe5da0d
@ -338,7 +338,7 @@ bool DwarfEHPrepare::HandleURoRInvokes() {
|
|||||||
for (SmallPtrSet<InvokeInst*, 32>::iterator
|
for (SmallPtrSet<InvokeInst*, 32>::iterator
|
||||||
UI = URoRInvokes.begin(), UE = URoRInvokes.end(); UI != UE; ++UI) {
|
UI = URoRInvokes.begin(), UE = URoRInvokes.end(); UI != UE; ++UI) {
|
||||||
const BasicBlock *URoRBB = (*UI)->getParent();
|
const BasicBlock *URoRBB = (*UI)->getParent();
|
||||||
if (SelBB == URoRBB || DT->dominates(SelBB, URoRBB)) {
|
if (DT->dominates(SelBB, URoRBB)) {
|
||||||
SelsToConvert.insert(*SI);
|
SelsToConvert.insert(*SI);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user