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

Amit Kumar Pandey via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 6 09:36:50 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),
----------------
ampandey-1995 wrote:

Yes , sorry one misstep is here is that GPUSan object created while not checking that ```-fsanitize=address```  available. This GPUSan should be a pointer and should be initialized when ```-fsanitize=address``` is detected on Args.

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


More information about the cfe-commits mailing list