]> granicus.if.org Git - clang/commit
Introduce PCHReader::GetTranslationUnitDecl() and use it instead of ReadDeclRecord...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 8 Jul 2010 17:13:02 +0000 (17:13 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 8 Jul 2010 17:13:02 +0000 (17:13 +0000)
commit8871a44ae61cf97ff6fff4c640fadce9ba4cf1b0
treef6c689432e33df638fb7678e0d09af33f23cf463
parentbfcc92c3476ada55ceeea49e43e6d2e083252830
Introduce PCHReader::GetTranslationUnitDecl() and use it instead of ReadDeclRecord when initializing.

ReadDeclRecord would hit assertion if the translation unit declaration was already loaded during
IdentifierInfo initialization.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107885 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Frontend/PCHReader.h
lib/Frontend/PCHReader.cpp