Skip to content

Commit

Permalink
[libc++] Fix typo in is_always_lock_free test (llvm#113169)
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne authored and EricWF committed Oct 22, 2024
1 parent 99d75a1 commit b38a802
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ 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) {
auto is_lock_free = a.is_lock_free();
ASSERT_SAME_TYPE(decltype(is_always_lock_free), bool const);
ASSERT_SAME_TYPE(decltype(is_lock_free), bool);
assert(is_lock_free);
}
ASSERT_NOEXCEPT(a.is_lock_free());
Expand Down

0 comments on commit b38a802

Please sign in to comment.