Skip to content

Commit

Permalink
compiler: prevent invering dtype on empty cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 31, 2023
1 parent cf85b06 commit f00e0d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devito/ir/clusters/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def dtype(self):
If two Clusters perform calculations with different precision, the
data type with highest precision is returned.
"""
dtypes = {i.dtype for i in self}
dtypes = {i.dtype for i in self} - {None}

return infer_dtype(dtypes)

Expand Down

0 comments on commit f00e0d4

Please sign in to comment.