[all-commits] [llvm/llvm-project] 1e5095: [tsan] Don't use `enum __tsan_memory_order` in tsa...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Tue Nov 5 09:21:42 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1e50958399e0bb2a558a5d5806a61da9b2ef9e74
      https://github.com/llvm/llvm-project/commit/1e50958399e0bb2a558a5d5806a61da9b2ef9e74
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2024-11-05 (Tue, 05 Nov 2024)

  Changed paths:
    M compiler-rt/include/sanitizer/tsan_interface_atomic.h
    M compiler-rt/lib/tsan/rtl/tsan_interceptors_mac.cpp
    M compiler-rt/lib/tsan/rtl/tsan_interface.h
    M compiler-rt/lib/tsan/rtl/tsan_interface_atomic.cpp

  Log Message:
  -----------
  [tsan] Don't use `enum __tsan_memory_order` in tsan interface (#114724)

In C++ it's UB to use undeclared values as enum.
And there is support `__ATOMIC_HLE_ACQUIRE` and
`__ATOMIC_HLE_RELEASE` need such values.

Internal implementation was switched to `class enum`,
where that behavior is defined. But interface is C, so
we just switch to `int`.



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