File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
java/ql/src/semmle/code/java/dataflow Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -779,7 +779,9 @@ private module SsaImpl {
779779 * between `b1` and `b2`.
780780 */
781781 private predicate varBlockReaches ( TrackedVar v , BasicBlock b1 , BasicBlock b2 ) {
782- varOccursInBlock ( v , b1 ) and b2 = b1 .getABBSuccessor ( )
782+ varOccursInBlock ( v , b1 ) and
783+ b2 = b1 .getABBSuccessor ( ) and
784+ blockPrecedesVar ( v , b2 )
783785 or
784786 exists ( BasicBlock mid |
785787 varBlockReaches ( v , b1 , mid ) and
Original file line number Diff line number Diff line change @@ -330,7 +330,9 @@ private module SsaImpl {
330330 * between `b1` and `b2`.
331331 */
332332 private predicate varBlockReaches ( BaseSsaSourceVariable v , BasicBlock b1 , BasicBlock b2 ) {
333- varOccursInBlock ( v , b1 ) and b2 = b1 .getABBSuccessor ( )
333+ varOccursInBlock ( v , b1 ) and
334+ b2 = b1 .getABBSuccessor ( ) and
335+ blockPrecedesVar ( v , b2 )
334336 or
335337 exists ( BasicBlock mid |
336338 varBlockReaches ( v , b1 , mid ) and
You can’t perform that action at this time.
0 commit comments