[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:05:05 PDT 2024
================
@@ -1546,7 +1546,8 @@ bool DataFlowSanitizer::runImpl(
SmallPtrSet<Constant *, 1> PersonalityFns;
for (Function &F : M)
if (!F.isIntrinsic() && !DFSanRuntimeFunctions.contains(&F) &&
- !LibAtomicFunction(F)) {
+ !LibAtomicFunction(F) &&
----------------
melver wrote:
Those are the ones already respecting the attribute.
- https://clang.llvm.org/docs/MemorySanitizer.html#attribute-disable-sanitizer-instrumentation
- https://clang.llvm.org/docs/ThreadSanitizer.html#attribute-disable-sanitizer-instrumentation
- https://clang.llvm.org/docs/AddressSanitizer.html#disabling-instrumentation-with-attribute-no-sanitize-address
https://github.com/llvm/llvm-project/pull/91732
More information about the llvm-commits
mailing list