Skip to content

Commit

Permalink
Update xdsl/transforms/apply_pdl.py
Browse files Browse the repository at this point in the history
Co-authored-by: Sasha Lopoukhine <[email protected]>
  • Loading branch information
qaco and superlopuh authored Oct 30, 2024
1 parent bb9a323 commit 1bd0242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xdsl/transforms/apply_pdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class ApplyPDLPass(ModulePass):
def apply(self, ctx: MLContext, op: builtin.ModuleOp) -> None:
payload_module = op
# Target the file containing the PDL specification
if self.pdl_file:
if self.pdl_file is not None:
assert os.path.exists(self.pdl_file)
with open(self.pdl_file) as f:
pdl_module_str = f.read()
Expand Down

0 comments on commit 1bd0242

Please sign in to comment.