summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-24 09:04:15 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-24 09:20:03 -0400
commitad16e8b3d27e30cc4eefb7c673f7646a30fe2f26 (patch)
tree94957192f7183dd2770590d3b4482a38efb401ae /python/mediumlevelil.py
parentf180f28fe96e7b5e069b56f0973faad64465fc75 (diff)
Small code improvement in MediumLevelILInstruction.get_var
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index e7b852c2..ae6c8b01 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -683,7 +683,7 @@ class MediumLevelILInstruction:
def get_var(self, operand_index:int) -> variable.Variable:
value = self.instr.operands[operand_index]
- return variable.Variable.from_identifier(self.function.source_function, self.instr.operands[operand_index])
+ return variable.Variable.from_identifier(self.function.source_function, value)
def get_var_ssa(self, operand_index1:int, operand_index2:int) -> SSAVariable:
var = variable.Variable.from_identifier(self.function.source_function, self.instr.operands[operand_index1])