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 {
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
You can’t perform that action at this time.
0 commit comments