[all-commits] [llvm/llvm-project] c85a26: [asan] Add support for disable_sanitizer_instrumen...

Alexander Potapenko via All-commits all-commits at lists.llvm.org
Fri Feb 18 00:52:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c85a26454d4b3dab383555c3864568b7aff9c225
      https://github.com/llvm/llvm-project/commit/c85a26454d4b3dab383555c3864568b7aff9c225
  Author: Alexander Potapenko <glider at google.com>
  Date:   2022-02-18 (Fri, 18 Feb 2022)

  Changed paths:
    M clang/docs/AddressSanitizer.rst
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/SanitizerMetadata.cpp
    M clang/test/CodeGen/address-safety-attr-flavors.cpp
    M clang/test/CodeGen/asan-globals.cpp
    M llvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
    A llvm/test/Instrumentation/AddressSanitizer/asan-disable-sanitizer-instrumentation.ll

  Log Message:
  -----------
  [asan] Add support for disable_sanitizer_instrumentation attribute

For ASan this will effectively serve as a synonym for
__attribute__((no_sanitize("address"))).

Adding the disable_sanitizer_instrumentation to functions will drop the
sanitize_XXX attributes on the IR level.

This is the third reland of https://reviews.llvm.org/D114421.
Now that TSan test is fixed (https://reviews.llvm.org/D120050) there
should be no deadlocks.

Differential Revision: https://reviews.llvm.org/D120055




More information about the All-commits mailing list