diff options
Diffstat (limited to 'lib/Frontend/PCHReader.cpp')
-rw-r--r-- | lib/Frontend/PCHReader.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/Frontend/PCHReader.cpp b/lib/Frontend/PCHReader.cpp index 37e11249f8..a0e3148bc7 100644 --- a/lib/Frontend/PCHReader.cpp +++ b/lib/Frontend/PCHReader.cpp @@ -1539,6 +1539,16 @@ PCHReader::ReadPCHBlock(PerFileData &F) { F.LocalNumDecls = Record[0]; break; + case pch::TU_UPDATE_LEXICAL: { + DeclContextInfo Info = { + /* No visible information */ 0, 0, + reinterpret_cast<const pch::DeclID *>(BlobStart), + BlobLen / sizeof(pch::DeclID) + }; + DeclContextOffsets[Context->getTranslationUnitDecl()].push_back(Info); + break; + } + case pch::LANGUAGE_OPTIONS: if (ParseLanguageOptions(Record) && !DisableValidation) return IgnorePCH; |