================
@@ -2060,6 +2060,7 @@ static QualType typeForNode(const ASTContext &Ctx, const 
HeuristicResolver *H,
       QualType VisitTemplateDecl(const TemplateDecl *D) {
         return Visit(D->getTemplatedDecl());
       }
+      QualType VisitConceptDecl(const ConceptDecl *C) { return QualType(); }
----------------
hokein wrote:

how about doing a nullptr check in the above `VisitTemplateDecl()`? 

```
QualType VisitTemplateDecl(const TemplateDecl *D) {
   if (const auto* TD = D->getTemplateDecl())
      return Visit(D->getTemplatedDecl());
   return QualType();
}
```

https://github.com/llvm/llvm-project/pull/191654
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to