From 5f486211a360b11f2c8f9891ffdf4deaa791b0f1 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 29 Dec 2021 10:17:46 -0500 Subject: Fixes Vector35/binaryninja-api#2789 --- python/mediumlevelil.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'python/mediumlevelil.py') 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: -- cgit v1.3.1