File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ module AccessPath {
316
316
i < j
317
317
)
318
318
or
319
- otherAccess .getBasicBlock ( ) = getASuccessorBBThatReadsVar ( write ) // more manual magic - outlined into a helper predicate.
319
+ otherAccess .getBasicBlock ( ) = getASuccessorBBThatReadsVar ( write )
320
320
)
321
321
}
322
322
@@ -378,10 +378,10 @@ module AccessPath {
378
378
getAVariableRef ( var ) = baseExpr and
379
379
var = getARelevantVariable ( ) and
380
380
writeNode = write .getWriteNode ( ) and
381
- result .getImmediateDominator + ( ) = writeNode .getBasicBlock ( ) and
382
- // manual magic.
383
- result = getAnAccessInContainer ( getARelevantVariable ( ) , _, false ) .getBasicBlock ( )
381
+ result .getImmediateDominator ( ) = writeNode .getBasicBlock ( )
384
382
)
383
+ or
384
+ result .getImmediateDominator ( ) = getASuccessorBBThatReadsVar ( write ) // more manual magic - outlined into a helper predicate.
385
385
}
386
386
}
387
387
You can’t perform that action at this time.
0 commit comments