Skip to content

Commit 61e11eb

Browse files
committed
CFG: Exclude 'try's from post-order in case they're Exprs.
1 parent a9f60fa commit 61e11eb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

shared/controlflow/codeql/controlflow/ControlFlowGraph.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,8 @@ module Make0<LocationSig Location, AstSig<Location> Ast> {
572572
not n instanceof ConditionalExpr and
573573
not n instanceof Switch and
574574
not n instanceof Case and
575-
not n instanceof BlockStmt
575+
not n instanceof BlockStmt and
576+
not n instanceof TryStmt
576577
}
577578

578579
/**

0 commit comments

Comments
 (0)