[clang] [Driver][ASan] Refactor Clang-Driver "Sanitizer Bitcode" linking. (PR #123922)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 08:40:46 PST 2025


================
@@ -950,6 +950,11 @@ void ROCMToolChain::addClangTargetOptions(
                                                 ABIVer))
     return;
 
+  std::tuple<bool, const SanitizerArgs> GPUSan(
+      DriverArgs.hasFlag(options::OPT_fgpu_sanitize,
+                         options::OPT_fno_gpu_sanitize, true),
----------------
jhuber6 wrote:

This cannot be default true, it included `ockl.bc` which breaks OpenMP's printf and includes some other conflicting definitions. Furthermore you disable internalization so they stick around in every single OpenMP program now.

https://github.com/llvm/llvm-project/pull/123922


More information about the cfe-commits mailing list