Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 36d0903

Browse files
committed
C++: Simplify 'getSourceVariable'.
1 parent 9f85175 commit 36d0903

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/ssa0/SsaInternals.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ abstract private class DefOrUseImpl extends TDefOrUseImpl {
6161

6262
/** Gets the variable that is defined or used. */
6363
final SourceVariable getSourceVariable() {
64-
exists(BaseSourceVariable v |
65-
result.getBaseVariable() = v and
66-
this.getBaseSourceVariable() = v
67-
)
64+
result.getBaseVariable() = this.getBaseSourceVariable()
6865
}
6966
}
7067

0 commit comments

Comments
 (0)