From: Ted Kremenek Date: Sat, 21 Mar 2009 00:15:11 +0000 (+0000) Subject: Allow PTH files with no identifiers. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8fbc44d540eb7b9dabef71ba616c9102a2eaa71a;p=clang Allow PTH files with no identifiers. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67423 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index e62accb642..b5f5afd81a 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -675,11 +675,6 @@ PTHManager* PTHManager::Create(const std::string& file, Diagnostic* Diags) { llvm::OwningPtr SL(PTHStringIdLookup::Create(StringIdTable, BufBeg)); - if (!FL->isEmpty() && SL->isEmpty()) { - InvalidPTH(Diags, "PTH file contains no identifiers."); - return 0; - } - // Get the location of the spelling cache. const unsigned char* spellingBaseOffset = PrologueOffset + sizeof(uint32_t)*3; const unsigned char* spellingBase = BufBeg + ReadLE32(spellingBaseOffset);