[clang] [Clang] Do not treat Foo -> const Foo conversion sequences as perfect (PR #148613)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 14 06:24:22 PDT 2025


================
@@ -448,11 +453,12 @@ class Sema;
 #endif
         return true;
       }
-      if (!C.hasSameType(getFromType(), getToType(2)))
-        return false;
       if (BindsToRvalue && IsLvalueReference)
         return false;
-      return true;
+      if (IsImplicitObjectArgumentQualificationConversion) {
----------------
erichkeane wrote:

Nit: No curleys here.

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


More information about the cfe-commits mailing list