[llvm] 230e57d - [ADT] Use std::add_pointer_t (NFC)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 3 23:27:51 PDT 2022


Author: Kazu Hirata
Date: 2022-09-03T23:27:18-07:00
New Revision: 230e57d2216e4cb0458231f2c793044d92ae6df7

URL: https://github.com/llvm/llvm-project/commit/230e57d2216e4cb0458231f2c793044d92ae6df7
DIFF: https://github.com/llvm/llvm-project/commit/230e57d2216e4cb0458231f2c793044d92ae6df7.diff

LOG: [ADT] Use std::add_pointer_t (NFC)

Added: 
    

Modified: 
    llvm/include/llvm/ADT/STLExtras.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/STLExtras.h b/llvm/include/llvm/ADT/STLExtras.h
index fa4ed0beecf8..4149071279c1 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -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 {


        


More information about the llvm-commits mailing list