diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-06-19 19:29:21 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-06-19 19:29:21 +0000 |
commit | 28d16d79e464063c09aa63c87afe10c25cb66c7c (patch) | |
tree | eedee6ca4ed200acf449c104e9eb2f8e1839e585 /lib/Frontend/PCHReaderDecl.cpp | |
parent | 8731ca76acf81826df7048bffd0c44c7c0f96c7f (diff) |
Include a hack to allow loading of templated CXXRecordDecls and test template reading from PCH.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106393 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHReaderDecl.cpp')
-rw-r--r-- | lib/Frontend/PCHReaderDecl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/PCHReaderDecl.cpp b/lib/Frontend/PCHReaderDecl.cpp index fe11ca76d3..3fc159ace2 100644 --- a/lib/Frontend/PCHReaderDecl.cpp +++ b/lib/Frontend/PCHReaderDecl.cpp @@ -590,6 +590,9 @@ void PCHDeclReader::VisitCXXRecordDecl(CXXRecordDecl *D) { } } + // FIXME: Hack. See PCHDeclWriter::VisitTypeDecl. + D->setTypeForDecl(Reader.GetType(Record[Idx++]).getTypePtr()); + // FIXME: this is far from complete if (D->isDefinition()) { |