mirror of
https://github.com/github/codeql.git
synced 2026-04-26 17:25:19 +02:00
Fix next-normal-statement predicate
This commit is contained in:
@@ -781,10 +781,9 @@ private module ControlFlowGraphImpl {
|
||||
getSwitchStatement(switch, i) = pred and
|
||||
getSwitchStatement(switch, i + 1) = immediateSucc and
|
||||
(
|
||||
succ = immediateSucc and
|
||||
not immediateSucc instanceof PatternCase
|
||||
or
|
||||
isNextNormalSwitchStmt(switch, immediateSucc, succ)
|
||||
if immediateSucc instanceof PatternCase
|
||||
then isNextNormalSwitchStmt(switch, immediateSucc, succ)
|
||||
else succ = immediateSucc
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user