diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-06 15:37:09 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-07-06 15:37:09 +0000 |
commit | 057d9afdc7e8027f3b928f0dd8d7d921d7cd5615 (patch) | |
tree | 6a1b0868cd9742b5ad4d40dd07e35f71d1a66c44 /lib/Frontend/PCHReaderDecl.cpp | |
parent | d455add086f1dfa16ae87dc310e49493bbc2b0a6 (diff) |
Read/write function template specializations for PCH, properly this time.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107665 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderDecl.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index 698adf49b5..e21cbab589 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -977,9 +977,12 @@ void PCHDeclReader::VisitFunctionTemplateDecl(FunctionTemplateDecl *D) { if (PrevDecl == 0) { // This FunctionTemplateDecl owns a CommonPtr; read it. - // FunctionTemplateSpecializationInfos are filled through the - // templated FunctionDecl's setFunctionTemplateSpecialization, no need to - // read them here. + // Read the function specialization declarations. + // FunctionTemplateDecl's FunctionTemplateSpecializationInfos are filled + // through the specialized FunctionDecl's setFunctionTemplateSpecialization. + unsigned NumSpecs = Record[Idx++]; + while (NumSpecs--) + Reader.GetDecl(Record[Idx++]); if (FunctionTemplateDecl *CTD = cast_or_null<FunctionTemplateDecl>(Reader.GetDecl(Record[Idx++]))) { |