We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 574ff7f commit 13647d8Copy full SHA for 13647d8
llvm/include/llvm/ADT/DenseSet.h
@@ -192,13 +192,11 @@ class DenseSetImpl {
192
void erase(const_iterator CI) { return TheMap.erase(CI.I); }
193
194
std::pair<iterator, bool> insert(const ValueT &V) {
195
- detail::DenseSetEmpty Empty;
196
- return TheMap.try_emplace(V, Empty);
+ return TheMap.try_emplace(V);
197
}
198
199
std::pair<iterator, bool> insert(ValueT &&V) {
200
201
- return TheMap.try_emplace(std::move(V), Empty);
+ return TheMap.try_emplace(std::move(V));
202
203
204
/// Alternative version of insert that uses a different (and possibly less
0 commit comments