Skip to content

Commit

Permalink
core: always print unregistered ops
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarice committed Oct 15, 2024
1 parent a7d8ebe commit 9254b45
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xdsl/printer.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,9 @@ def print_block(

with self.indented():
for op in block.ops:
if not print_block_terminator and op.has_trait(IsTerminator):
if not print_block_terminator and op.has_trait(
IsTerminator, value_if_unregistered=False
):
continue
self._print_new_line()
self.print_op(op)
Expand Down

0 comments on commit 9254b45

Please sign in to comment.