C++: Simplify 'getSourceVariable'.

This commit is contained in:
Mathias Vorreiter Pedersen
2022-12-08 12:29:15 +00:00
parent 9f85175ee1
commit 36d0903733

View File

@@ -61,10 +61,7 @@ abstract private class DefOrUseImpl extends TDefOrUseImpl {
/** Gets the variable that is defined or used. */ /** Gets the variable that is defined or used. */
final SourceVariable getSourceVariable() { final SourceVariable getSourceVariable() {
exists(BaseSourceVariable v | result.getBaseVariable() = this.getBaseSourceVariable()
result.getBaseVariable() = v and
this.getBaseSourceVariable() = v
)
} }
} }