diff --git a/llvm/include/llvm/ADT/DenseSet.h b/llvm/include/llvm/ADT/DenseSet.h index 8ba74f6b9f746..281d4d1c78cc0 100644 --- a/llvm/include/llvm/ADT/DenseSet.h +++ b/llvm/include/llvm/ADT/DenseSet.h @@ -192,13 +192,11 @@ class DenseSetImpl { void erase(const_iterator CI) { return TheMap.erase(CI.I); } std::pair insert(const ValueT &V) { - detail::DenseSetEmpty Empty; - return TheMap.try_emplace(V, Empty); + return TheMap.try_emplace(V); } std::pair insert(ValueT &&V) { - detail::DenseSetEmpty Empty; - return TheMap.try_emplace(std::move(V), Empty); + return TheMap.try_emplace(std::move(V)); } /// Alternative version of insert that uses a different (and possibly less