[libc++][format] Removes an AIX work-around.
authorMark de Wever <koraq@xs4all.nl>
Mon, 5 Jun 2023 16:39:23 +0000 (18:39 +0200)
committerMark de Wever <koraq@xs4all.nl>
Tue, 20 Jun 2023 17:31:08 +0000 (19:31 +0200)
This work-around was for Clang 13 and older, which we no longer support.

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D152175

libcxx/include/__format/format_functions.h

index 8bb4023..c8b5904 100644 (file)
@@ -358,20 +358,6 @@ private:
   static constexpr array<__format::__arg_t, sizeof...(_Args)> __types_{
       __format::__determine_arg_t<_Context, remove_cvref_t<_Args>>()...};
 
-  // TODO FMT remove this work-around when the AIX ICE has been resolved.
-#    if defined(_AIX) && defined(_LIBCPP_CLANG_VER) && _LIBCPP_CLANG_VER < 1400
-  template <class _Tp>
-  static constexpr __format::__compile_time_handle<_CharT> __get_handle() {
-    __format::__compile_time_handle<_CharT> __handle;
-    if (__format::__determine_arg_t<_Context, _Tp>() == __format::__arg_t::__handle)
-      __handle.template __enable<_Tp>();
-
-    return __handle;
-  }
-
-  static constexpr array<__format::__compile_time_handle<_CharT>, sizeof...(_Args)> __handles_{
-      __get_handle<_Args>()...};
-#    else
   static constexpr array<__format::__compile_time_handle<_CharT>, sizeof...(_Args)> __handles_{[] {
     using _Tp = remove_cvref_t<_Args>;
     __format::__compile_time_handle<_CharT> __handle;
@@ -380,7 +366,6 @@ private:
 
     return __handle;
   }()...};
-#    endif
 };
 
 template <class... _Args>