Skip to content

Commit c023af7

Browse files
committed
manual recursion, and other join-order
1 parent 070468a commit c023af7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

javascript/ql/lib/semmle/javascript/GlobalAccessPaths.qll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ module AccessPath {
316316
i < j
317317
)
318318
or
319-
otherAccess.getBasicBlock() = getASuccessorBBThatReadsVar(write) // more manual magic - outlined into a helper predicate.
319+
otherAccess.getBasicBlock() = getASuccessorBBThatReadsVar(write)
320320
)
321321
}
322322

@@ -378,10 +378,10 @@ module AccessPath {
378378
getAVariableRef(var) = baseExpr and
379379
var = getARelevantVariable() and
380380
writeNode = write.getWriteNode() and
381-
result.getImmediateDominator+() = writeNode.getBasicBlock() and
382-
// manual magic.
383-
result = getAnAccessInContainer(getARelevantVariable(), _, false).getBasicBlock()
381+
result.getImmediateDominator() = writeNode.getBasicBlock()
384382
)
383+
or
384+
result.getImmediateDominator() = getASuccessorBBThatReadsVar(write) // more manual magic - outlined into a helper predicate.
385385
}
386386
}
387387

0 commit comments

Comments
 (0)