Skip to content

Commit 1a0c988

Browse files
committed
[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
1 parent a490bbf commit 1a0c988

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libcxx/include/__atomic/atomic_sync.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ _LIBCPP_HIDE_FROM_ABI bool __cxx_nonatomic_compare_equal(_Tp const& __lhs, _Tp c
137137

138138
template <class _Tp>
139139
struct __atomic_compare_unequal_to {
140-
_Tp __val;
141-
_LIBCPP_HIDE_FROM_ABI bool operator()(_Tp& __current_val) const {
142-
return !std::__cxx_nonatomic_compare_equal(__current_val, __val);
140+
_Tp __val_;
141+
_LIBCPP_HIDE_FROM_ABI bool operator()(const _Tp& __arg) const {
142+
return !std::__cxx_nonatomic_compare_equal(__arg, __val_);
143143
}
144144
};
145145

0 commit comments

Comments
 (0)