C++: Fixup queries which assumes that a guard is always an expression.

This commit is contained in:
Mathias Vorreiter Pedersen
2025-09-17 16:45:50 +01:00
parent fbd877a118
commit 5e82eb9b24
5 changed files with 6 additions and 6 deletions

View File

@@ -22,7 +22,7 @@ module NetworkToBufferSizeConfig implements DataFlow::ConfigSig {
predicate isBarrier(DataFlow::Node node) {
exists(GuardCondition gc, Variable v |
gc.getAChild*() = v.getAnAccess() and
gc.(Expr).getAChild*() = v.getAnAccess() and
node.asExpr() = v.getAnAccess() and
gc.controls(node.asExpr().getBasicBlock(), _) and
not exists(Loop loop | loop.getControllingExpr() = gc)