Skip to content

Commit 8863b2d

Browse files
committed
compiler: Polish ir.Relation
1 parent bd3cd55 commit 8863b2d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

devito/ir/support/basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ def function(self):
535535
if q_comp_acc(self.source.access) and not q_comp_acc(self.sink.access):
536536
# E.g., `source=ab[x].x` and `sink=ab[x]` -> `a(x)`
537537
return self.source.access.function_access
538-
elif q_comp_acc(self.sink.access) and not q_comp_acc(self.source.access):
538+
elif not q_comp_acc(self.source.access) and q_comp_acc(self.sink.access):
539539
# E.g., `source=ab[x]` and `sink=ab[x].y` -> `b(x)`
540540
return self.sink.access.function_access
541541
else:

0 commit comments

Comments
 (0)