[clang] [clang] remove ClassScopeFunctionSpecializationDecl (PR #66636)

Shafik Yaghmour via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 18 17:55:53 PDT 2023


================
@@ -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());
----------------
shafik wrote:

`getNumTemplates()` returns `unsigned` while `size()` AFAICT returns `size_t` which is not the same type. Is this ok?

https://github.com/llvm/llvm-project/pull/66636


More information about the cfe-commits mailing list