================ @@ -19710,6 +19710,27 @@ bool Sema::IsLayoutCompatible(QualType T1, QualType T2) const { return isLayoutCompatible(getASTContext(), T1, T2); } +//===-------------- Pointer interconvertibility ----------------------------// + +bool Sema::IsPointerInterconvertibleBaseOf(const TypeSourceInfo *Base, + const TypeSourceInfo *Derived) { + QualType BaseT = Base->getType().getCanonicalType().getUnqualifiedType(); + QualType DerivedT = + Derived->getType().getCanonicalType().getUnqualifiedType(); ---------------- Endilll wrote:
Looking at the implementation and return type of `getCanonicalTypeUnqualified()`, I'm not sure it does the same thing. https://github.com/llvm/llvm-project/pull/88473 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits