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

Aaron Puchert via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 08:55:07 PDT 2025


================
@@ -226,6 +226,12 @@ class DenseMapBase : public DebugEpochBase {
     return Default;
   }
 
+  ValueT lookup_or(const_arg_type_t<KeyT> Val, const ValueT &Default) const {
----------------
aaronpuchert wrote:

Oh, the default argument is for initializer lists, see https://cplusplus.github.io/LWG/issue3886.

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


More information about the llvm-commits mailing list