summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-06-23 11:32:53 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-05 10:08:09 -0400
commitfd05425503a97950778899ad5c20a39069896760 (patch)
treefba18a00d3c1fb3da60608c62611413801463930 /python
parent920da93a153ff0e6cff405c76f6d5175a9cbcfa4 (diff)
fix issue when looking up branch type in Architecture._get_instruction_info
Diffstat (limited to 'python')
-rw-r--r--python/architecture.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/architecture.py b/python/architecture.py
index 2d6fde0f..650f93a1 100644
--- a/python/architecture.py
+++ b/python/architecture.py
@@ -618,7 +618,7 @@ class Architecture(metaclass=_ArchitectureMetaClass):
result[0].branchCount = len(info.branches)
for i in range(0, len(info.branches)):
if isinstance(info.branches[i].type, str):
- result[0].branchType[i] = BranchType[info.branches[i].type]
+ result[0].branchType[i] = BranchType[info.branches[i].type.name]
else:
result[0].branchType[i] = info.branches[i].type
result[0].branchTarget[i] = info.branches[i].target