================
@@ -1041,17 +1041,18 @@ RocmInstallationDetector::getCommonBitcodeLibs(
BCLib.ShouldInternalize = Internalize;
BCLibs.emplace_back(BCLib);
};
- auto AddSanBCLibs = [&]() {
- if (Pref.GPUSan)
- AddBCLib(getAsanRTLPath(), false);
- };
- AddSanBCLibs();
+ // For OpenMP, openmp-devicertl(libompdevice.a) already contains ASan GPU
+ // runtime and Ockl functions (via POST_BUILD). Don't add it again at driver
+ // level to avoid duplicates as most of the symbols have USED attribute and
+ // duplicates entries in llvm.compiler.used & llvm.used makes their
+ // duplicate definitions persist even with internalization enabled
+ if (Pref.GPUSan && !Pref.IsOpenMP)
----------------
arsenm wrote:
The language should not matter
https://github.com/llvm/llvm-project/pull/182825
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits