[llvm] [LLVM] Make sanitizers respect the disable_santizer_instrumentation attribute. (PR #91732)

Daniel Kiss via llvm-commits llvm-commits at lists.llvm.org
Tue May 14 04:52:29 PDT 2024


================
@@ -560,6 +560,8 @@ bool MemProfiler::instrumentFunction(Function &F) {
     return false;
   if (F.getName().starts_with("__memprof_"))
     return false;
+  if (F.hasFnAttribute(Attribute::DisableSanitizerInstrumentation))
----------------
DanielKristofKiss wrote:

there isn't as I see, let's make `no_profile_instrument_function` be the one.

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


More information about the llvm-commits mailing list