Skip to content

Commit 77bfe39

Browse files
committed
Shared: Address review comments.
1 parent 4381bae commit 77bfe39

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

shared/dataflow/codeql/dataflow/internal/ContentDataFlowImpl.qll

+4-7
Original file line numberDiff line numberDiff line change
@@ -455,18 +455,15 @@ module MakeImplContentDataFlow<LocationSig Location, InputSig<Location> Lang> {
455455
)
456456
}
457457

458-
pragma[nomagic]
459-
private predicate nodeAndState(Flow::PathNode n, Node node, State state) {
460-
n.getNode() = node and n.getState() = state
461-
}
462-
463458
pragma[nomagic]
464459
private predicate succNodeAndState(
465460
Flow::PathNode pre, Node preNode, State preState, Flow::PathNode succ, Node succNode,
466461
State succState
467462
) {
468-
nodeAndState(pre, preNode, preState) and
469-
nodeAndState(succ, succNode, succState) and
463+
pre.getNode() = preNode and
464+
pre.getState() = preState and
465+
succ.getNode() = succNode and
466+
succ.getState() = succState and
470467
pre.getASuccessor() = succ
471468
}
472469

0 commit comments

Comments
 (0)