[libcxx-commits] [libcxx] 1a0c988 - [libc++][NFC] rename variable in atomic_sync
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 1 11:52:25 PST 2024
Author: Hui
Date: 2024-03-01T19:52:14Z
New Revision: 1a0c988ebddd83bd34393a1500b5f3ce80888fbc
URL: https://github.com/llvm/llvm-project/commit/1a0c988ebddd83bd34393a1500b5f3ce80888fbc
DIFF: https://github.com/llvm/llvm-project/commit/1a0c988ebddd83bd34393a1500b5f3ce80888fbc.diff
LOG: [libc++][NFC] rename variable in atomic_sync
As discussed in https://github.com/llvm/llvm-project/pull/81427/files#r1509266817
rename the variable as a separate commit
Added:
Modified:
libcxx/include/__atomic/atomic_sync.h
Removed:
################################################################################
diff --git a/libcxx/include/__atomic/atomic_sync.h b/libcxx/include/__atomic/atomic_sync.h
index d07b35878493bc..2997bad83344b2 100644
--- a/libcxx/include/__atomic/atomic_sync.h
+++ b/libcxx/include/__atomic/atomic_sync.h
@@ -137,9 +137,9 @@ _LIBCPP_HIDE_FROM_ABI bool __cxx_nonatomic_compare_equal(_Tp const& __lhs, _Tp c
template <class _Tp>
struct __atomic_compare_unequal_to {
- _Tp __val;
- _LIBCPP_HIDE_FROM_ABI bool operator()(_Tp& __current_val) const {
- return !std::__cxx_nonatomic_compare_equal(__current_val, __val);
+ _Tp __val_;
+ _LIBCPP_HIDE_FROM_ABI bool operator()(const _Tp& __arg) const {
+ return !std::__cxx_nonatomic_compare_equal(__arg, __val_);
}
};
More information about the libcxx-commits
mailing list