[clang] [OpenMP][ASan] Enable ASan Instrumentation for AMDGPUOpenMPToolChain. (PR #124754)

Amit Kumar Pandey via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 4 03:07:40 PST 2025


================
@@ -71,10 +71,10 @@ llvm::opt::DerivedArgList *AMDGPUOpenMPToolChain::TranslateArgs(
 
   const OptTable &Opts = getDriver().getOpts();
 
-  for (Arg *A : Args) {
-    if (!llvm::is_contained(*DAL, A))
+  for (Arg *A : Args)
+    if (!shouldSkipSanitizeOption(*this, Args, BoundArch, A) &&
----------------
ampandey-1995 wrote:

Currently I think the  scope of ```shouldSkipSanitizeOption``` is limited to AMDGPU Derived Toolchains only. 

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


More information about the cfe-commits mailing list