diff options
-rw-r--r-- | libcxx/include/__type_traits/rank.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libcxx/include/__type_traits/rank.h b/libcxx/include/__type_traits/rank.h index 55c78ea0..5196b62 100644 --- a/libcxx/include/__type_traits/rank.h +++ b/libcxx/include/__type_traits/rank.h @@ -19,11 +19,11 @@ _LIBCPP_BEGIN_NAMESPACE_STD -// TODO: Enable using the builtin __array_rank when https://llvm.org/PR57133 is resolved -#if __has_builtin(__array_rank) && 0 +#if __has_builtin(__array_rank) && !defined(_LIBCPP_COMPILER_CLANG_BASED) || \ + (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 2001) template <class _Tp> -struct rank : integral_constant<size_t, __array_rank(_Tp)> {}; +struct _LIBCPP_NO_SPECIALIZATIONS rank : integral_constant<size_t, __array_rank(_Tp)> {}; #else |