mirror of
https://github.com/github/codeql.git
synced 2026-04-17 13:04:02 +02:00
Fix bug in UnreachableBlocks
This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user