diff --git a/llvm/tools/sycl-post-link/sycl-post-link.cpp b/llvm/tools/sycl-post-link/sycl-post-link.cpp index 1fb3d93af5064..b92f4d3a4eb6a 100644 --- a/llvm/tools/sycl-post-link/sycl-post-link.cpp +++ b/llvm/tools/sycl-post-link/sycl-post-link.cpp @@ -319,7 +319,7 @@ static void collectKernelModuleMap( } case Scope_Global: // the map key is not significant here - ResKernelModuleMap[""].push_back(&F); + ResKernelModuleMap[GLOBAL_SCOPE_NAME].push_back(&F); break; } }