================ @@ -205,10 +205,10 @@ const NamedDecl *nonloc::PointerToMember::getDecl() const { return nullptr; const NamedDecl *ND = nullptr; - if (PTMD.is<const NamedDecl *>()) - ND = PTMD.get<const NamedDecl *>(); + if (isa<const NamedDecl *>(PTMD)) ---------------- steakhal wrote:
I think we should use dyn_cast here. 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