Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
n-io committed Nov 6, 2024
1 parent 23d37ca commit 4156c39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xdsl/dialects/csl/csl_stencil.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,9 @@ def verify_(self) -> None:
f"Unexpected block argument type of done_exchange, got {arg.type} != {expected_type} at index {arg.index}"
)

if (len(self.res) != 0) and (len(self.dest) != 0):
if (len(self.res) == 0) == (len(self.dest) == 0):
raise VerifyException(
"Expected stencil.apply to have results or dest specified, but not both"
"Expected stencil.apply to have either results or dest specified"
)

def get_rank(self) -> int:
Expand Down

0 comments on commit 4156c39

Please sign in to comment.