[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)

via cfe-commits cfe-commits at lists.llvm.org
Tue Sep 10 09:37:57 PDT 2024


================
@@ -905,10 +907,10 @@ llvm::Function *CGNVCUDARuntime::makeModuleCtorFunction() {
     GpuBinaryHandle = new llvm::GlobalVariable(
         TheModule, PtrTy, /*isConstant=*/false, Linkage,
         /*Initializer=*/
-        CudaGpuBinary ? llvm::ConstantPointerNull::get(PtrTy) : nullptr,
----------------
jofrn wrote:

Yes, that one is good! Thanks.

https://github.com/llvm/llvm-project/pull/107458


More information about the cfe-commits mailing list