================
@@ -444,13 +444,13 @@ class Sema;
           if (auto *N = T->getAs<MemberPointerType>();
               N && N->isMemberFunctionPointer())
             T = C.getDecayedType(N->getPointeeType());
-          return T;
+
+          return T.getAtomicUnqualifiedType();
         };
         // The types might differ if there is an array-to-pointer conversion
         // an function-to-pointer conversion, or lvalue-to-rvalue conversion.
         // In some cases, this may happen even if First is not set.
-        assert(C.hasSameUnqualifiedType(Decay(getFromType()),
-                                        Decay(getToType(2))));
+        assert(C.hasSameType(Decay(getFromType()), Decay(getToType(2))));
----------------
cor3ntin wrote:

we probable want to keep the assert for CV qualifiers

https://github.com/llvm/llvm-project/pull/176619
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to