We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1fc59c commit 630289fCopy full SHA for 630289f
clang/lib/CodeGen/CodeGenModule.cpp
@@ -916,7 +916,7 @@ void CodeGenModule::Release() {
916
llvm::ConstantArray::get(ATy, UsedArray), "__clang_gpu_used_external");
917
addCompilerUsedGlobal(GV);
918
}
919
- if (LangOpts.HIP) {
+ if (LangOpts.HIP && !getLangOpts().OffloadingNewDriver) {
920
// Emit a unique ID so that host and device binaries from the same
921
// compilation unit can be associated.
922
auto *GV = new llvm::GlobalVariable(
0 commit comments