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

@@ -51,7 +51,7 @@ class ReallocCallLeak extends FunctionCall {
predicate mayHandleByTermination() {
exists(GuardCondition guard, CallMayNotReturn exit |
this.(ControlFlowNode).getASuccessor*() = guard and
guard.getAChild*() = v.getAnAccess() and
guard.(Expr).getAChild*() = v.getAnAccess() and
guard.controls(exit.getBasicBlock(), _)
)
}