================ @@ -650,17 +642,16 @@ void ASTDeclWriter::VisitFunctionDecl(FunctionDecl *D) { DependentFunctionTemplateSpecializationInfo * DFTSInfo = D->getDependentSpecializationInfo(); - // Templates. - Record.push_back(DFTSInfo->getNumTemplates()); - for (int i=0, e = DFTSInfo->getNumTemplates(); i != e; ++i) - Record.AddDeclRef(DFTSInfo->getTemplate(i)); + // Candidates. + Record.push_back(DFTSInfo->getCandidates().size()); ---------------- sdkrystian wrote:
`DependentFunctionTemplateSpecializationInfo` stores the number of candidates in an `unsigned` member, so it should be fine. https://github.com/llvm/llvm-project/pull/66636 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits