Skip to content

Commit e7027fb

Browse files
owen-mcCopilot
andcommitted
Restore SsaVariable compatibility accessor
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 7d8b19e commit e7027fb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • go/ql/lib/semmle/go/dataflow

‎go/ql/lib/semmle/go/dataflow/SSA.qll‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ private predicate unresolvedIdentifier(Ident id, string name) {
6868
* An SSA variable.
6969
*/
7070
deprecated class SsaVariable extends SsaDefinition {
71+
/** Gets the SSA variable defined by this definition. */
72+
SsaVariable getVariable() { result = this }
73+
7174
/** Gets the unique definition of this SSA variable. */
7275
SsaDefinition getDefinition() { result = this }
7376

0 commit comments

Comments
 (0)