aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/PCHReaderDecl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-21 10:57:41 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-06-21 10:57:41 +0000
commit5bf1bdc2fedb0c29b5fcdb4abc852aa85b4fe26a (patch)
treeccefb836f9c7c2fc75d94c7782b64fa8a2fbc62d /lib/Frontend/PCHReaderDecl.cpp
parent4be54302da40d3e7cba3d93115f312d2fcca1879 (diff)
Combine ClassTemplateDecl's PreviousDeclaration with CommonPtr, as in FunctionTemplateDecl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106412 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r--lib/Frontend/PCHReaderDecl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp
index 2968aea93e..d84eb085cf 100644
--- a/lib/Frontend/PCHReaderDecl.cpp
+++ b/lib/Frontend/PCHReaderDecl.cpp
@@ -671,7 +671,7 @@ void PCHDeclReader::VisitClassTemplateDecl(ClassTemplateDecl *D) {
ClassTemplateDecl *PrevDecl =
cast_or_null<ClassTemplateDecl>(Reader.GetDecl(Record[Idx++]));
- D->initPreviousDeclaration(*Reader.getContext(), PrevDecl);
+ D->setPreviousDeclaration(PrevDecl);
if (PrevDecl == 0) {
// This ClassTemplateDecl owns a CommonPtr; read it.
@@ -1085,7 +1085,8 @@ Decl *PCHReader::ReadDeclRecord(uint64_t Offset, unsigned Index) {
assert(false && "cannot read FriendTemplateDecl");
break;
case pch::DECL_CLASS_TEMPLATE:
- D = ClassTemplateDecl::CreateEmpty(*Context);
+ D = ClassTemplateDecl::Create(*Context, 0, SourceLocation(),
+ DeclarationName(), 0, 0, 0);
break;
case pch::DECL_CLASS_TEMPLATE_SPECIALIZATION:
assert(false && "cannot read ClasstemplateSpecializationDecl");