зеркало из https://github.com/github/codeql.git
Fix bug in UnreachableBlocks
This commit is contained in:
Родитель
c8c15a0899
Коммит
efb34aea45
|
@ -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)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
| unreachableblocks/Unreachable.java:12:22:14:3 | { ... } |
|
||||
| unreachableblocks/Unreachable.java:17:3:17:9 | case ... |
|
||||
| unreachableblocks/Unreachable.java:19:3:19:9 | case ... |
|
||||
| unreachableblocks/Unreachable.java:22:3:22:9 | case ... |
|
||||
| unreachableblocks/Unreachable.java:24:3:24:9 | case ... |
|
||||
| unreachableblocks/Unreachable.java:26:3:26:10 | case ... |
|
||||
| unreachableblocks/Unreachable.java:27:3:27:10 | default |
|
||||
|
|
Загрузка…
Ссылка в новой задаче