================
@@ -1296,7 +1296,9 @@ void CodeGenModule::Release() {
llvm::ConstantArray::get(ATy, UsedArray), "__clang_gpu_used_external");
addCompilerUsedGlobal(GV);
}
- if (LangOpts.HIP) {
+ // Skip __hip_cuid_ under incremental extensions (clang-repl): its constant
+ // name collides across modules in the same JIT dylib (duplicate symbols).
----------------
AdityaSinha149 wrote:
I have reworded the comment to also explain why the marker is not needed in
clang-repl. Please review.
https://github.com/llvm/llvm-project/pull/217228
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits