[all-commits] [llvm/llvm-project] 10158b: sanitizer_common: fix 32-bit build

Dmitry Vyukov via All-commits all-commits at lists.llvm.org
Mon Jul 12 05:03:27 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 10158b52dcb3b9f1db44d9bd56993ad8cd68912a
      https://github.com/llvm/llvm-project/commit/10158b52dcb3b9f1db44d9bd56993ad8cd68912a
  Author: Dmitry Vyukov <dvyukov at google.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M compiler-rt/CMakeLists.txt
    M compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary32.h

  Log Message:
  -----------
  sanitizer_common: fix 32-bit build

https://reviews.llvm.org/D105716 enabled thread safety annotations,
and that broke 32-bit build:
https://green.lab.llvm.org/green/job/lldb-cmake/33604/consoleFull#-77815080549ba4694-19c4-4d7e-bec5-911270d8a58c

1. Enable thread-safety analysis in unit tests
(this catches the breakage even in 64-bit mode).
2. Add NO_THREAD_SAFETY_ANALYSIS to sanitizer_allocator_primary32.h
to unbreak the build.

Reviewed By: melver

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




More information about the All-commits mailing list