projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9dc6223
)
[ADT] Use std::add_pointer_t (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 4 Sep 2022 06:27:18 +0000
(23:27 -0700)
committer
Kazu Hirata
<kazu@google.com>
Sun, 4 Sep 2022 06:27:18 +0000
(23:27 -0700)
llvm/include/llvm/ADT/STLExtras.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/STLExtras.h
b/llvm/include/llvm/ADT/STLExtras.h
index
fa4ed0b
..
4149071
100644
(file)
--- 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 {