summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2023-06-09 14:30:52 -0400
committerPeter LaFosse <peter@vector35.com>2023-06-09 14:30:52 -0400
commit9e56cf7d4798d8c5014407c3a4caf9579465f004 (patch)
tree0132d7428a521ed4fb56d3fd833b34117650c6f9 /python
parentecda1f47ca11e53db9a0d57f7367277c3d237904 (diff)
Fix LowLevelILCallSsa.output to work like MediumLevelILCallSsa.output
Diffstat (limited to 'python')
-rw-r--r--python/lowlevelil.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 5942de6d..f8e8e419 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -2696,8 +2696,10 @@ class LowLevelILSetRegStackRelSsa(LowLevelILInstruction, RegisterStack, SSA):
@dataclass(frozen=True, repr=False, eq=False)
class LowLevelILCallSsa(LowLevelILInstruction, Localcall, SSA):
@property
- def output(self) -> LowLevelILInstruction:
- return self._get_expr(0)
+ def output(self) -> List[SSARegister]:
+ inst = self._get_expr(0)
+ assert isinstance(inst, LowLevelILCallOutputSsa), "LowLevelILCallSsa return bad type for output"
+ return inst.dest
@property
def dest(self) -> LowLevelILInstruction: