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 {
64
64
65
65
template <class _Tp >
66
66
struct __atomic_ref_base {
67
+ using value_type = __remove_cv_t <_Tp>;
68
+
67
69
private:
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);
70
72
# if __has_builtin(__builtin_clear_padding)
71
73
__builtin_clear_padding (__ptr);
72
74
# endif
@@ -115,8 +117,6 @@ struct __atomic_ref_base {
115
117
static constexpr size_t __min_alignment = (sizeof (_Tp) & (sizeof (_Tp) - 1 )) || (sizeof (_Tp) > 16 ) ? 0 : sizeof (_Tp);
116
118
117
119
public:
118
- using value_type = __remove_cv_t <_Tp>;
119
-
120
120
static constexpr size_t required_alignment = alignof (_Tp) > __min_alignment ? alignof (_Tp) : __min_alignment;
121
121
122
122
// 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