]> granicus.if.org Git - clang/commitdiff
Allow PTH files with no identifiers.
authorTed Kremenek <kremenek@apple.com>
Sat, 21 Mar 2009 00:15:11 +0000 (00:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Sat, 21 Mar 2009 00:15:11 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67423 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index e62accb6425cdd8d71eb3f1dfe794bdf2b4b583e..b5f5afd81ab17db9c79ee6caf526f8e30a039baa 100644 (file)
@@ -675,11 +675,6 @@ PTHManager* PTHManager::Create(const std::string& file, Diagnostic* Diags) {
 
   llvm::OwningPtr<PTHStringIdLookup> 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);