[clang] [clang-repl][CUDA] Move CUDA module registration to beginning of global_ctors (PR #66658)
Vassil Vassilev via cfe-commits
cfe-commits at lists.llvm.org
Mon Oct 28 02:07:00 PDT 2024
================
@@ -794,7 +794,7 @@ void CodeGenModule::Release() {
AddGlobalCtor(ObjCInitFunction);
if (Context.getLangOpts().CUDA && CUDARuntime) {
if (llvm::Function *CudaCtorFunction = CUDARuntime->finalizeModule())
- AddGlobalCtor(CudaCtorFunction);
+ AddGlobalCtor(CudaCtorFunction, /*Priority=*/0);
----------------
vgvassilev wrote:
@argentite, could we revisit this?
https://github.com/llvm/llvm-project/pull/66658
More information about the cfe-commits
mailing list