File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
libcxx/include/experimental/__simd Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 11
11
#define _LIBCPP_EXPERIMENTAL___SIMD_ALIGNED_TAG_H
12
12
13
13
#include < __memory/assume_aligned.h>
14
+ #include < __type_traits/remove_const.h>
14
15
#include < cstddef>
15
16
#include < experimental/__config>
16
17
#include < experimental/__simd/traits.h>
@@ -35,7 +36,7 @@ inline constexpr bool is_simd_flag_type_v<element_aligned_tag> = true;
35
36
36
37
struct vector_aligned_tag {
37
38
template <class _Tp , class _Up = typename _Tp::value_type>
38
- static constexpr size_t __alignment = memory_alignment_v<_Tp, _Up>;
39
+ static constexpr size_t __alignment = memory_alignment_v<_Tp, remove_const_t < _Up> >;
39
40
40
41
template <class _Tp , class _Up >
41
42
static _LIBCPP_HIDE_FROM_ABI constexpr _Up* __apply (_Up* __ptr) {
You can’t perform that action at this time.
0 commit comments