C++: sync Operand source

This commit is contained in:
Paolo Tranquilli
2021-11-19 14:09:56 +00:00
committed by GitHub
parent 74c0197544
commit 5202f963dd
4 changed files with 4 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ class Operand extends TStageOperand {
/**
* Gets the location of the source code for this operand.
*/
final Language::Location getLocation() { result = this.getUse().getLocation() }
final Language::Location getLocation() { result = this.getAnyDef().getLocation() }
/**
* Gets the function that contains this operand.

View File

@@ -46,7 +46,7 @@ class Operand extends TStageOperand {
/**
* Gets the location of the source code for this operand.
*/
final Language::Location getLocation() { result = this.getUse().getLocation() }
final Language::Location getLocation() { result = this.getAnyDef().getLocation() }
/**
* Gets the function that contains this operand.