summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 63d876e8..bb039cc7 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -2334,7 +2334,9 @@ class MediumLevelILTailcallUntypedSsa(MediumLevelILCallBase, Tailcall, SSA):
@property
def params(self) -> MediumLevelILInstruction:
- return self._get_expr(2)
+ inst = self._get_expr(2)
+ assert isinstance(inst, MediumLevelILCallParamSsa), "MediumLevelILTailcallUntypedSsa return bad type for 'params'"
+ return inst.src
@property
def stack(self) -> MediumLevelILInstruction: