[ADT] Use std::add_pointer_t (NFC)
authorKazu Hirata <kazu@google.com>
Sun, 4 Sep 2022 06:27:18 +0000 (23:27 -0700)
committerKazu Hirata <kazu@google.com>
Sun, 4 Sep 2022 06:27:18 +0000 (23:27 -0700)
llvm/include/llvm/ADT/STLExtras.h

index fa4ed0b..4149071 100644 (file)
@@ -67,7 +67,7 @@ using ValueOfRange = typename std::remove_reference<decltype(
 //===----------------------------------------------------------------------===//
 
 template <typename T> struct make_const_ptr {
-  using type = typename std::add_pointer<std::add_const_t<T>>::type;
+  using type = std::add_pointer_t<std::add_const_t<T>>;
 };
 
 template <typename T> struct make_const_ref {