Skip to content

Commit

Permalink
try using set updates
Browse files Browse the repository at this point in the history
  • Loading branch information
superlopuh committed May 21, 2024
1 parent ae8b7de commit 8b06f3f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion xdsl/ir/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,12 @@ def parse_element() -> set[EnumType]:
if flags is None:
return tuple()

return tuple(set().union(*flags))
res = set[EnumType]()

for flag_set in flags:
res |= flag_set

return tuple(res)

def print_parameter(self, printer: Printer):
with printer.in_angle_brackets():
Expand Down

0 comments on commit 8b06f3f

Please sign in to comment.