[llvm] [DenseMap] Fix MSVC buildbot failure in lookup_or (PR #142268)

Aaron Puchert via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 14:16:52 PDT 2025


================
@@ -220,7 +220,8 @@ class DenseMapBase : public DebugEpochBase {
   // Return the entry with the specified key, or \p Default. This variant is
   // useful, because `lookup` cannot be used with non-default-constructible
   // values.
-  ValueT lookup_or(const_arg_type_t<KeyT> Val, ValueT &&Default) const {
+  template <typename U = std::remove_cv_t<ValueT>>
----------------
aaronpuchert wrote:

Does this change affect the return type? That seems to be `ValueT` in any case. But maybe I'm misunderstanding your question.

https://github.com/llvm/llvm-project/pull/142268


More information about the llvm-commits mailing list