From ffdd28eaa9f3f04868bd4a0e5c8d77adc76088f3 Mon Sep 17 00:00:00 2001 From: Mathias Vorreiter Pedersen Date: Fri, 22 Dec 2023 10:29:31 +0100 Subject: [PATCH] C++: Show base variable in SSA variable 'toString's. --- .../lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll index 52c873efec7b..11bebd975f0b 100644 --- a/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll +++ b/cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaInternals.qll @@ -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