[llvm] [LLVM] Make sanitizers respect the disable_santizer_instrumentation attribute. (PR #91732)
Marco Elver via llvm-commits
llvm-commits at lists.llvm.org
Mon May 13 05:14:09 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))
----------------
melver wrote:
Also not a sanitizer, but it looks like there's not existing attribute to disable it?
https://github.com/llvm/llvm-project/pull/91732
More information about the llvm-commits
mailing list