Fix bug in UnreachableBlocks

This commit is contained in:
Owen Mansel-Chan
2024-11-14 14:50:25 +00:00
parent c8c15a0899
commit efb34aea45
2 changed files with 1 additions and 2 deletions

View File

@@ -223,7 +223,7 @@ class UnreachableBasicBlock extends BasicBlock {
// Not accessible from the successful case
not constSwitchStmt.getMatchingCase().getBasicBlock().getABBSuccessor*() = failingCaseBlock and
// Blocks dominated by the failing case block are unreachable
constSwitchStmt.getAFailingCase().getBasicBlock().bbDominates(this)
failingCaseBlock.bbDominates(this)
)
}
}