]> granicus.if.org Git - clang/commitdiff
Handle PCHReader::IgnorePCH, it gets returned for when the file does not exist.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 25 Jun 2009 18:22:30 +0000 (18:22 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Thu, 25 Jun 2009 18:22:30 +0000 (18:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74196 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/ASTUnit.cpp

index a7fbcda8fc2becec87dcd171e39722ce8ab25583..8143263ca2f94ee881104424774e048a26fbf154 100644 (file)
@@ -113,14 +113,10 @@ ASTUnit *ASTUnit::LoadFromPCHFile(const std::string &Filename,
     break;
     
   case PCHReader::Failure:
-    // Unrecoverable failure: don't even try to process the input
-    // file.
+  case PCHReader::IgnorePCH:
     if (ErrMsg)
       *ErrMsg = "Could not load PCH file";
     return NULL;
-
-  case PCHReader::IgnorePCH:
-    assert(0 && "Is there a validation that should not have happened ?");
   }
   
   // PCH loaded successfully. Now create the preprocessor.