Skip to content

Commit f851af0

Browse files
owen-mcCopilot
andcommitted
Preserve direct labels in shared CFG
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e7691be commit f851af0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎shared/controlflow/codeql/controlflow/ControlFlowGraph.qll‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1328,7 +1328,7 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
13281328
or
13291329
exists(Input1::Label l |
13301330
c.hasLabel(l) and
1331-
hasEnclosingLabel(loop, l)
1331+
(Input1::hasLabel(loop, l) or hasEnclosingLabel(loop, l))
13321332
)
13331333
)
13341334
)
@@ -1368,7 +1368,7 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
13681368
or
13691369
exists(Input1::Label l |
13701370
c.hasLabel(l) and
1371-
hasEnclosingLabel(switch, l)
1371+
(Input1::hasLabel(switch, l) or hasEnclosingLabel(switch, l))
13721372
)
13731373
)
13741374
or

0 commit comments

Comments
 (0)