Skip to content

Commit

Permalink
dialects: (llvm) avoid double whitespace after exact (#3415)
Browse files Browse the repository at this point in the history
The pretty printer of the `exact` keyword accidentally printed two
whitespaces in a row, which led to non-canical code being emitted. This
change ensures we only print a single whitespace after the `exact`
keyword.
  • Loading branch information
tobiasgrosser authored Nov 9, 2024
1 parent e150009 commit de1bee5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdsl/dialects/llvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def parse_exact(cls, parser: Parser):

def print_exact(self, printer: Printer) -> None:
if self.is_exact:
printer.print(" exact ")
printer.print(" exact")

@classmethod
def parse(cls, parser: Parser):
Expand Down

0 comments on commit de1bee5

Please sign in to comment.