Handle (odd) corner case of argumentless __global__ function.

[ROCm/clr commit: 927b06f8d4]
Этот коммит содержится в:
Alex Voicu
2018-11-12 00:32:35 +00:00
родитель 0178ad536a
Коммит f843c8dd48
+2
Просмотреть файл
@@ -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));