Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e93140d + f02ef51 commit cd721f3Copy full SHA for cd721f3
1 file changed
csharp/ql/src/semmle/code/csharp/dataflow/SSA.qll
@@ -670,7 +670,9 @@ module Ssa {
670
671
/** Holds if `v` occurs in `bb` or one of `bb`'s transitive successors. */
672
private predicate blockPrecedesVar(TrackedVar v, BasicBlock bb) {
673
- varOccursInBlock(v, bb.getASuccessor*())
+ varOccursInBlock(v, bb)
674
+ or
675
+ blockPrecedesVar(v, bb.getASuccessor())
676
}
677
678
/**
0 commit comments