From 9e56cf7d4798d8c5014407c3a4caf9579465f004 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Fri, 9 Jun 2023 14:30:52 -0400 Subject: Fix LowLevelILCallSsa.output to work like MediumLevelILCallSsa.output --- python/lowlevelil.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'python') 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: -- cgit v1.3.1