Skip to content

Commit d8e14a6

Browse files
committed
JS: Add ssaDefHasSource.
1 parent 25297cb commit d8e14a6

File tree

1 file changed

+5
-0
lines changed
  • javascript/ql/lib/semmle/javascript/dataflow/internal/sharedlib

1 file changed

+5
-0
lines changed

javascript/ql/lib/semmle/javascript/dataflow/internal/sharedlib/Ssa.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ module SsaDataflowInput implements DataFlowIntegrationInputSig {
5656
predicate hasCfgNode(js::BasicBlock bb, int i) { this = bb.getNode(i) }
5757
}
5858

59+
predicate ssaDefHasSource(WriteDefinition def) {
60+
// This library only handles use-use flow after a post-update, there are no definitions, only uses.
61+
none()
62+
}
63+
5964
predicate ssaDefAssigns(WriteDefinition def, Expr value) {
6065
// This library only handles use-use flow after a post-update, there are no definitions, only uses.
6166
none()

0 commit comments

Comments
 (0)