Skip to content

Commit a10d4ee

Browse files
committed
Simplify INSTRUCTION_SIZE check
1 parent a718cfb commit a10d4ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tools/cases_generator/analyzer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ def add_instruction(name: str) -> None:
10821082

10831083

10841084
def is_instruction_size_macro(token: lexer.Token) -> bool:
1085-
return token.kind == "IDENTIFIER" and token.text == "INSTRUCTION_SIZE"
1085+
return token.text == "INSTRUCTION_SIZE"
10861086

10871087

10881088
def get_instruction_size_for_uop(instructions: dict[str, Instruction], uop: Uop) -> int | None:

0 commit comments

Comments
 (0)