From 732088e131ab730e4f2791e16dd75f76259d4e9e Mon Sep 17 00:00:00 2001 From: Siu Chi Chan Date: Thu, 29 Nov 2018 11:38:34 -0500 Subject: [PATCH] Revert "Handle (odd) corner case of argumentless __global__ function." This reverts commit f843c8dd482b752524178eb576704b1a1312562d. [ROCm/clr commit: 30a9be564366a4fe5845add0f70a3fc2e3449ffd] --- .../hipamd/include/hip/hcc_detail/functional_grid_launch.hpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/projects/clr/hipamd/include/hip/hcc_detail/functional_grid_launch.hpp b/projects/clr/hipamd/include/hip/hcc_detail/functional_grid_launch.hpp index 5edddad6c5..ba9929c0a6 100644 --- a/projects/clr/hipamd/include/hip/hcc_detail/functional_grid_launch.hpp +++ b/projects/clr/hipamd/include/hip/hcc_detail/functional_grid_launch.hpp @@ -102,8 +102,6 @@ inline std::vector 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(kernel));