summaryrefslogtreecommitdiff
path: root/python/highlevelil.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/highlevelil.py')
-rw-r--r--python/highlevelil.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/python/highlevelil.py b/python/highlevelil.py
index 2acaea74..451942fc 100644
--- a/python/highlevelil.py
+++ b/python/highlevelil.py
@@ -2435,9 +2435,10 @@ class HighLevelILFunction:
if self.source_function is None:
return []
- if self.il_form in [
- FunctionGraphType.HighLevelILFunctionGraph, FunctionGraphType.HighLevelILSSAFormFunctionGraph
- ]:
+ if self.il_form == FunctionGraphType.HighLevelILSSAFormFunctionGraph:
+ return self.ssa_vars
+
+ if self.il_form == FunctionGraphType.HighLevelILFunctionGraph:
count = ctypes.c_ulonglong()
core_variables = core.BNGetHighLevelILVariables(self.handle, count)
assert core_variables is not None, "core.BNGetHighLevelILVariables returned None"