[llvm] 9dc6223 - [ADT] Use std::add_lvalue_reference_t (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sat Sep 3 23:27:49 PDT 2022
Author: Kazu Hirata
Date: 2022-09-03T23:27:17-07:00
New Revision: 9dc622311718061135741cdda168b35cb2673693
URL: https://github.com/llvm/llvm-project/commit/9dc622311718061135741cdda168b35cb2673693
DIFF: https://github.com/llvm/llvm-project/commit/9dc622311718061135741cdda168b35cb2673693.diff
LOG: [ADT] Use std::add_lvalue_reference_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 d12edd7740e7d..fa4ed0beecf80 100644
--- a/llvm/include/llvm/ADT/STLExtras.h
+++ b/llvm/include/llvm/ADT/STLExtras.h
@@ -71,7 +71,7 @@ template <typename T> struct make_const_ptr {
};
template <typename T> struct make_const_ref {
- using type = typename std::add_lvalue_reference<std::add_const_t<T>>::type;
+ using type = std::add_lvalue_reference_t<std::add_const_t<T>>;
};
namespace detail {
More information about the llvm-commits
mailing list