Skip to content

Commit

Permalink
Fix INSTRUCTION_SIZE in tier2
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Oct 16, 2024
1 parent ee461d5 commit 7135103
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions Python/executor_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Tools/cases_generator/generators_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ def instruction_size(self,
inst: Instruction | None
) -> bool:
"""Replace the INSTRUCTION_SIZE macro with the size of the current instruction."""
size = inst.size if inst else 1 + uop.size
self.out.emit(f" {size} ")
assert inst is not None, "INSTRUCTION_SIZE macro requires instruction"
self.out.emit(f" {inst.size} ")
return True

def _print_storage(self, storage: Storage) -> None:
Expand Down

0 comments on commit 7135103

Please sign in to comment.