aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJoseph Huber <huberjn@outlook.com>2024-03-07 11:04:40 -0600
committerGitHub <noreply@github.com>2024-03-07 11:04:40 -0600
commit630289f77d67703673928ae38d3e5ba900e9ff62 (patch)
treeb27628566cc002272ded9d2db6c69c694cd60a0c /clang/lib/CodeGen/CodeGenModule.cpp
parentd1fc59c3b5c5ce292a6060d7a5545094cdf1b5fc (diff)
downloadllvm-630289f77d67703673928ae38d3e5ba900e9ff62.zip
llvm-630289f77d67703673928ae38d3e5ba900e9ff62.tar.gz
llvm-630289f77d67703673928ae38d3e5ba900e9ff62.tar.bz2
[HIP] Do not include the CUID module hash with the new driver (#84332)
Summary: The new driver does not need this hash and it can lead to redefined symbol errors when the CUID hash isn't set.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index d02875c..967319b 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -916,7 +916,7 @@ void CodeGenModule::Release() {
llvm::ConstantArray::get(ATy, UsedArray), "__clang_gpu_used_external");
addCompilerUsedGlobal(GV);
}
- if (LangOpts.HIP) {
+ if (LangOpts.HIP && !getLangOpts().OffloadingNewDriver) {
// Emit a unique ID so that host and device binaries from the same
// compilation unit can be associated.
auto *GV = new llvm::GlobalVariable(