Skip to content

Commit 7b5e5cf

Browse files
committed
C#: Continue to use the special handling of LogicalNotExpr in the controlflow implementation.
1 parent 82d09f6 commit 7b5e5cf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

csharp/ql/lib/semmle/code/csharp/controlflow/ControlFlowGraph.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,11 @@ private module Input implements InputSig1, InputSig2 {
207207
exists(QualifiableExpr qe | qe.isConditional() | n = getQualifier(qe))
208208
}
209209

210-
predicate postOrInOrder(Ast::AstNode n) { n instanceof YieldStmt or n instanceof Call }
210+
predicate postOrInOrder(Ast::AstNode n) {
211+
n instanceof YieldStmt
212+
or
213+
n instanceof Call and not n instanceof LogicalNotExpr
214+
}
211215

212216
predicate beginAbruptCompletion(
213217
Ast::AstNode ast, PreControlFlowNode n, AbruptCompletion c, boolean always

0 commit comments

Comments
 (0)