Index: clang/lib/AST/ASTContext.cpp =================================================================== --- clang/lib/AST/ASTContext.cpp +++ clang/lib/AST/ASTContext.cpp @@ -2860,7 +2860,7 @@ return true; if (Ty->isMemberPointerType()) { - const auto *MPT = Ty->getAs(); + const auto *MPT = Ty->castAs(); return !ABI->getMemberPointerInfo(MPT).HasPadding; }