[clang] [HIP][Clang][CodeGen] Handle hip bin symbols properly. (PR #107458)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 10 09:35:30 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,
----------------
yxsamliu wrote:
or change it to:
`RelocatableDeviceCode ? nullptr : llvm::ConstantPointerNull::get(PtrTy)`
https://github.com/llvm/llvm-project/pull/107458
More information about the cfe-commits
mailing list