C++: Show base variable in SSA variable 'toString's.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-22 10:29:31 +01:00
parent 67f8bcce44
commit ffdd28eaa9

View File

@@ -41,7 +41,7 @@ private module SourceVariables {
SsaInternals0::SourceVariable getBaseVariable() { result = base }
/** Gets a textual representation of this element. */
string toString() { result = repeatStars(this.getIndirection()) }
string toString() { result = repeatStars(this.getIndirection()) + base.toString() }
/**
* Gets the number of loads performed on the base source variable