================ @@ -196,13 +196,13 @@ const PointerToMemberData *BasicValueFactory::accumCXXBase( const NamedDecl *ND = nullptr; llvm::ImmutableList<const CXXBaseSpecifier *> BaseSpecList; - if (PTMDT.isNull() || PTMDT.is<const NamedDecl *>()) { - if (PTMDT.is<const NamedDecl *>()) - ND = PTMDT.get<const NamedDecl *>(); + if (PTMDT.isNull() || isa<const NamedDecl *>(PTMDT)) { + if (isa<const NamedDecl *>(PTMDT)) ---------------- kazutakahirata wrote:
Switched to `dyn_cast_if_present` because `PTMDT` could be null. https://github.com/llvm/llvm-project/pull/118421 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits