mirror of
https://github.com/github/codeql.git
synced 2025-12-20 10:46:30 +01:00
Python: Address review
This commit is contained in:
@@ -176,8 +176,10 @@ class BarrierGuard extends GuardNode {
|
||||
|
||||
/** Gets a node guarded by this guard. */
|
||||
final ExprNode getAGuardedNode() {
|
||||
exists(boolean testIsTrue |
|
||||
this.checks(result.asCfgNode(), testIsTrue) and
|
||||
exists(Variable v, NameNode n, boolean testIsTrue |
|
||||
n.uses(v) and
|
||||
this.checks(n, testIsTrue) and
|
||||
result.asCfgNode().(NameNode).uses(v) and
|
||||
this.controlsNode(result.asCfgNode(), testIsTrue)
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user