[llvm-branch-commits] [tsan] Don't use `enum __tsan_memory_order` in tsan interface (PR #114724)

Vitaly Buka via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Nov 3 16:19:48 PST 2024


https://github.com/vitalybuka created https://github.com/llvm/llvm-project/pull/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`.





More information about the llvm-branch-commits mailing list