[all-commits] [llvm/llvm-project] 0330ce: [compiler-rt] Remove redundant checks. (#95753)

Dmitriy Chestnykh via All-commits all-commits at lists.llvm.org
Mon Jul 1 18:59:46 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0330ce99c2992a26ed55a867b825763966034634
      https://github.com/llvm/llvm-project/commit/0330ce99c2992a26ed55a867b825763966034634
  Author: Dmitriy Chestnykh <dm.chestnykh at gmail.com>
  Date:   2024-07-01 (Mon, 01 Jul 2024)

  Changed paths:
    M compiler-rt/lib/asan/asan_suppressions.cpp
    M compiler-rt/lib/sanitizer_common/sancov_flags.cpp

  Log Message:
  -----------
  [compiler-rt] Remove redundant checks. (#95753)

Since `__sancov_default_options` and `__asan_default_suppressions` are
weak definitions, not weak references (declarations) the checks of
equality of addresses of these symbols to zero is not needed. So we can
completely remove `MaybeCallSancovDefaultOptions` and use
`__sancov_default_options` instead directly. gcc-14 emits `-Waddress`
warning to such checks.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list