summaryrefslogtreecommitdiff
path: root/python/mediumlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/mediumlevelil.py')
-rw-r--r--python/mediumlevelil.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/mediumlevelil.py b/python/mediumlevelil.py
index 6377996b..84ef1382 100644
--- a/python/mediumlevelil.py
+++ b/python/mediumlevelil.py
@@ -6350,7 +6350,8 @@ class MediumLevelILFunction:
if expr_type is not None:
if isinstance(expr_type, str):
(expr_type, _) = self.view.parse_type_string(expr_type)
- tc = expr_type._to_core_struct()
+ ic = expr_type.immutable_copy()
+ tc = ic._to_core_struct()
else:
tc = core.BNTypeWithConfidence()
tc.type = None