Skip to content

Commit

Permalink
none
Browse files Browse the repository at this point in the history
  • Loading branch information
mamanain committed Dec 23, 2024
1 parent 91946e0 commit 2e5ee7b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xdsl/dialects/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1642,11 +1642,13 @@ class ModuleOp(IRDLOperation):
def __init__(
self,
ops: list[Operation] | Region,
properties: dict[str, Attribute],
attributes: Mapping[str, Attribute] | None = None,
properties: dict[str, Attribute] | None = None,
):
if attributes is None:
attributes = {}
if properties is None:
properties = {}
if isinstance(ops, Region):
region = ops
else:
Expand Down Expand Up @@ -1674,7 +1676,7 @@ def parse(cls, parser: Parser) -> ModuleOp:
if not region.blocks:
region.add_block(Block())

return ModuleOp(region, properties, attributes)
return ModuleOp(region, attributes, properties)

def print(self, printer: Printer) -> None:
if "sym_name" in self.properties and isinstance(
Expand Down

0 comments on commit 2e5ee7b

Please sign in to comment.