Skip to content

Commit a023fd9

Browse files
committed
Fix another compilation error
1 parent 634b679 commit a023fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

java/ql/lib/semmle/code/java/ControlFlowGraph.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,7 @@ private module ControlFlowGraphImpl {
13951395
switchExpr = switch.(SwitchStmt).getExpr() or switchExpr = switch.(SwitchExpr).getExpr()
13961396
|
13971397
// From the entry point control is transferred first to the expression...
1398-
n = switch.(AstNode).getCFGNode() and
1398+
(n.asStmt() = switch or n.asExpr() = switch) and
13991399
result = first(switchExpr) and
14001400
completion = NormalCompletion()
14011401
or

0 commit comments

Comments
 (0)