From fd05425503a97950778899ad5c20a39069896760 Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 23 Jun 2021 11:32:53 -0400 Subject: fix issue when looking up branch type in Architecture._get_instruction_info --- python/architecture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') 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 -- cgit v1.3.1