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:
89365b1
)
[ADT] Use std::is_copy_constructible_v (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 20 Nov 2022 19:32:31 +0000
(11:32 -0800)
committer
Kazu Hirata
<kazu@google.com>
Sun, 20 Nov 2022 19:32:31 +0000
(11:32 -0800)
llvm/include/llvm/ADT/MapVector.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/MapVector.h
b/llvm/include/llvm/ADT/MapVector.h
index
27232c2
..
9d908f3
100644
(file)
--- a/
llvm/include/llvm/ADT/MapVector.h
+++ b/
llvm/include/llvm/ADT/MapVector.h
@@
-109,7
+109,7
@@
public:
// Returns a copy of the value. Only allowed if ValueT is copyable.
ValueT lookup(const KeyT &Key) const {
- static_assert(std::is_copy_constructible
<ValueT>::value
,
+ static_assert(std::is_copy_constructible
_v<ValueT>
,
"Cannot call lookup() if ValueT is not copyable.");
typename MapType::const_iterator Pos = Map.find(Key);
return Pos == Map.end()? ValueT() : Vector[Pos->second].second;