[llvm] [DenseMap] Work around a MSVC bug in lookup_or (PR #142268)

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 08:18:17 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 {
----------------
kazutakahirata wrote:

I just tried Compiler Explorer like so: https://godbolt.org/z/rvfden1bf


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


More information about the llvm-commits mailing list