[clang] [Clang] Enable nsan instrumentation pass (PR #97359)

Alexander Shaposhnikov via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 2 16:54:31 PDT 2024


================
@@ -707,6 +708,9 @@ static void addSanitizers(const Triple &TargetTriple,
       MPM.addPass(createModuleToFunctionPassAdaptor(ThreadSanitizerPass()));
     }
 
+    if (LangOpts.Sanitize.has(SanitizerKind::NumericalStability))
+      MPM.addPass(NumericalStabilitySanitizerPass());
----------------
alexander-shaposhnikov wrote:

debugging would be a bit harder - so would prefer to postpone adding them, but yeah, thanks for the suggestion, will keep it in mind. 

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


More information about the cfe-commits mailing list