From 4a4fb37644c984509e05c51c01e1656cc074c995 Mon Sep 17 00:00:00 2001 From: Alex Reinking Date: Thu, 9 Jul 2026 14:26:17 -0400 Subject: [PATCH] Fix Handle construction in Generator.cpp The call to `Handle(64)` confused the number of bit a Handle always has (64) with the number of lanes (the actual argument, 1 by default). --- src/Generator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator.cpp b/src/Generator.cpp index 0a445ceabafa..0e72b5626f68 100644 --- a/src/Generator.cpp +++ b/src/Generator.cpp @@ -639,7 +639,7 @@ std::string halide_type_to_c_type(const Type &t) { {encode(Float(16)), "uint16_t"}, // TODO: see Issues #3709, #3967 {encode(Float(32)), "float"}, {encode(Float(64)), "double"}, - {encode(Handle(64)), "void*"}}; + {encode(Handle()), "void*"}}; internal_assert(m.count(encode(t))) << t << " " << encode(t); return m.at(encode(t)); }