Handle (odd) corner case of argumentless __global__ function.

Αυτή η υποβολή περιλαμβάνεται σε:
Alex Voicu
2018-11-12 00:32:35 +00:00
γονέας eddb783e9b
υποβολή c0bd1a5af8
@@ -102,6 +102,8 @@ inline std::vector<std::uint8_t> make_kernarg(
static_assert(sizeof...(Formals) == sizeof...(Actuals),
"The count of formal arguments must match the count of actuals.");
if (sizeof...(Formals) == 0) return {};
const auto it = function_names().find(
reinterpret_cast<std::uintptr_t>(kernel));