Merge pull request #15191 from MathiasVP/show-indirections-in-ssainternals-2

C++: Show base variable in SSA variable `toString`s
This commit is contained in:
Mathias Vorreiter Pedersen
2023-12-22 12:58:12 +01:00
committed by GitHub

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