summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2021-09-16 10:50:57 -0400
committerPeter LaFosse <peter@vector35.com>2021-09-16 10:50:57 -0400
commitbcb6c1e89995248f46bad12a08a329e505072cdb (patch)
treeebfc9b6ab78989b7ebe34166009cf5669ccb80bd /python/lowlevelil.py
parenta0a7b91801f087f2dc4e808b3061df4a2f6fc3fe (diff)
fix get_semantic_flag_class_index
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 7d2585a9..c80cc5a2 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -3865,10 +3865,7 @@ class LowLevelILFunction:
cond = LowLevelILFlagCondition[cond]
elif isinstance(cond, LowLevelILFlagCondition):
cond = cond.value
- class_index = architecture.SemanticClassIndex(0)
- if sem_class is not None:
- class_index = self.arch.get_semantic_flag_class_index(sem_class)
- assert isinstance(class_index, int)
+ class_index = self.arch.get_semantic_flag_class_index(sem_class)
return self.expr(LowLevelILOperation.LLIL_FLAG_COND, cond, architecture.SemanticClassIndex(class_index))
def flag_group(self, sem_group) -> ExpressionIndex: