summaryrefslogtreecommitdiff
path: root/python/languagerepresentation.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2026-04-15 11:15:08 -0400
committerJosh Ferrell <josh@vector35.com>2026-04-15 11:15:08 -0400
commitc08cf3f1eaa73a5171c27044100479998104d58a (patch)
tree893d6cb69d40f28a5c075f3d81f60ae7c6faa219 /python/languagerepresentation.py
parent5da9c9ba36985d8c008f07b157dbd2cec86303d4 (diff)
[Python API] Fix exception in LanguageRepresentationFunction.get_block_lines
Diffstat (limited to 'python/languagerepresentation.py')
-rw-r--r--python/languagerepresentation.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/languagerepresentation.py b/python/languagerepresentation.py
index 17dd2b9e..fccc7aa5 100644
--- a/python/languagerepresentation.py
+++ b/python/languagerepresentation.py
@@ -618,7 +618,7 @@ class LanguageRepresentationFunction:
for i in range(0, count.value):
addr = lines[i].addr
if lines[i].instrIndex != 0xffffffffffffffff:
- il_instr = instr.function[lines[i].instrIndex] # type: ignore
+ il_instr = block.function[lines[i].instrIndex]
else:
il_instr = None
color = highlight.HighlightColor._from_core_struct(lines[i].highlight)