From bcb6c1e89995248f46bad12a08a329e505072cdb Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Thu, 16 Sep 2021 10:50:57 -0400 Subject: fix get_semantic_flag_class_index --- python/lowlevelil.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'python/lowlevelil.py') 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: -- cgit v1.3.1