[libcxx-commits] [libcxx] [libc++] Fix name of is_always_lock_free test which was never being run (PR #106077)
Damien L-G via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Oct 19 04:58:01 PDT 2024
================
@@ -45,7 +51,8 @@ void check_always_lock_free(std::atomic<T> const& a) {
// In all cases, also sanity-check it based on the implication always-lock-free => lock-free.
if (is_always_lock_free) {
- std::same_as<bool> decltype(auto) is_lock_free = a.is_lock_free();
+ auto is_lock_free = a.is_lock_free();
+ ASSERT_SAME_TYPE(decltype(is_always_lock_free), bool const);
----------------
dalg24 wrote:
Would you open a PR to fix this?
https://github.com/llvm/llvm-project/pull/106077
More information about the libcxx-commits
mailing list