File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -64,9 +64,11 @@ struct __get_aligner_instance {
6464
6565template <class _Tp >
6666struct __atomic_ref_base {
67+ using value_type = __remove_cv_t <_Tp>;
68+
6769private:
68- _LIBCPP_HIDE_FROM_ABI static _Tp * __clear_padding (_Tp & __val) noexcept {
69- _Tp * __ptr = std::addressof (__val);
70+ _LIBCPP_HIDE_FROM_ABI static value_type * __clear_padding (value_type & __val) noexcept {
71+ value_type * __ptr = std::addressof (__val);
7072# if __has_builtin(__builtin_clear_padding)
7173 __builtin_clear_padding (__ptr);
7274# endif
@@ -115,8 +117,6 @@ struct __atomic_ref_base {
115117 static constexpr size_t __min_alignment = (sizeof (_Tp) & (sizeof (_Tp) - 1 )) || (sizeof (_Tp) > 16 ) ? 0 : sizeof (_Tp);
116118
117119public:
118- using value_type = __remove_cv_t <_Tp>;
119-
120120 static constexpr size_t required_alignment = alignof (_Tp) > __min_alignment ? alignof (_Tp) : __min_alignment;
121121
122122 // The __atomic_always_lock_free builtin takes into account the alignment of the pointer if provided,
You can’t perform that action at this time.
0 commit comments