diff --git a/dace/codegen/targets/cpu.py b/dace/codegen/targets/cpu.py index 42d59ed0ff..154001a561 100644 --- a/dace/codegen/targets/cpu.py +++ b/dace/codegen/targets/cpu.py @@ -1295,7 +1295,7 @@ def memlet_definition(self, # so address-of would add an unwanted indirection # that breaks the libnode call (e.g. ``MPI_Bcast`` # expects ``MPI_Comm``, not ``MPI_Comm *``). - result += "{} {} = &{};".format(conntype.ctype, local_name, expr) + result += "auto {} = &{};".format(local_name, expr) else: # Pointer reference result += "{} {} = {};".format(ctypedef, local_name, expr)