mirror of
https://github.com/github/codeql.git
synced 2026-05-04 05:05:12 +02:00
Python: add missing * (and a rename)
This commit is contained in:
@@ -178,9 +178,9 @@ class BarrierGuard extends GuardNode {
|
||||
/** Gets a node guarded by this guard. */
|
||||
final ExprNode getAGuardedNode() {
|
||||
exists(EssaDefinition def, ControlFlowNode node, boolean branch |
|
||||
AdjacentUses::aUse(def, node) and
|
||||
AdjacentUses::useOfDef(def, node) and
|
||||
this.checks(node, branch) and
|
||||
AdjacentUses::aUse(def, result.asCfgNode()) and
|
||||
AdjacentUses::useOfDef(def, result.asCfgNode()) and
|
||||
this.controlsBlock(result.asCfgNode().getBasicBlock(), branch)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -506,12 +506,10 @@ private module SsaComputeImpl {
|
||||
* Holds if the value defined at `def` can reach `use`, possibly through phi nodes.
|
||||
*/
|
||||
cached
|
||||
predicate aUse(EssaDefinition def, ControlFlowNode use) {
|
||||
firstUse(def, use)
|
||||
or
|
||||
predicate useOfDef(EssaDefinition def, ControlFlowNode use) {
|
||||
exists(ControlFlowNode firstUse |
|
||||
firstUse(def, firstUse) and
|
||||
adjacentUseUse(firstUse, use)
|
||||
adjacentUseUse*(firstUse, use)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user