summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/highlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index b8203e75..82e19557 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -631,7 +631,7 @@ class HighLevelILInstruction(BaseILInstruction):
def get_var(self, operand_index:int) -> 'variable.Variable':
value = self.core_instr.operands[operand_index]
- return variable.Variable.from_identifier(self.function, self.core_instr.operands[operand_index])
+ return variable.Variable.from_identifier(self.function, value)
def get_var_ssa(self, operand_index1:int, operand_index2:int) -> 'mediumlevelil.SSAVariable':
var = variable.Variable.from_identifier(self.function, self.core_instr.operands[operand_index1])