Skip to content

Commit db7db68

Browse files
authored
[libc++] Use __is_array if the builtin is fixed (#93037)
1 parent 00c622e commit db7db68

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libcxx/include/__type_traits/is_array.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@
1919

2020
_LIBCPP_BEGIN_NAMESPACE_STD
2121

22-
// TODO: Clang incorrectly reports that __is_array is true for T[0].
23-
// Re-enable the branch once https://llvm.org/PR54705 is fixed.
24-
#if __has_builtin(__is_array) && 0
22+
#if __has_builtin(__is_array) && \
23+
(!defined(_LIBCPP_COMPILER_CLANG_BASED) || (defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER >= 1900))
2524

2625
template <class _Tp>
2726
struct _LIBCPP_TEMPLATE_VIS is_array : _BoolConstant<__is_array(_Tp)> {};

0 commit comments

Comments
 (0)