[cfe-commits] r74196 - /cfe/trunk/lib/Frontend/ASTUnit.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Thu Jun 25 11:22:31 PDT 2009
Author: akirtzidis
Date: Thu Jun 25 13:22:30 2009
New Revision: 74196
URL: http://llvm.org/viewvc/llvm-project?rev=74196&view=rev
Log:
Handle PCHReader::IgnorePCH, it gets returned for when the file does not exist.
Modified:
cfe/trunk/lib/Frontend/ASTUnit.cpp
Modified: cfe/trunk/lib/Frontend/ASTUnit.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/ASTUnit.cpp?rev=74196&r1=74195&r2=74196&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/ASTUnit.cpp (original)
+++ cfe/trunk/lib/Frontend/ASTUnit.cpp Thu Jun 25 13:22:30 2009
@@ -113,14 +113,10 @@
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.
More information about the cfe-commits
mailing list