================ @@ -54,7 +54,7 @@ class UncountedCallArgsChecker bool shouldVisitImplicitCode() const { return false; } bool TraverseDecl(Decl *D) { - if (isa<ClassTemplateDecl>(D) && isRefType(safeGetName(D))) + if (D && isa<ClassTemplateDecl>(D) && isRefType(safeGetName(D))) return true; return RecursiveASTVisitor<LocalVisitor>::TraverseDecl(D); } ---------------- rniwa wrote:
Good point. That would be cleaner. https://github.com/llvm/llvm-project/pull/90301 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits