aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/ASTUnit.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-25 18:22:30 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-06-25 18:22:30 +0000
commit106c9981f18084e60602244f1feaeabbbe8ab5e8 (patch)
treebad19aa6e7d7423bfbf7f036181309bad37e0953 /lib/Frontend/ASTUnit.cpp
parent16f19306f9dd24cdc397ceae89a73a55086e5127 (diff)
Handle PCHReader::IgnorePCH, it gets returned for when the file does not exist.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ASTUnit.cpp')
-rw-r--r--lib/Frontend/ASTUnit.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/Frontend/ASTUnit.cpp b/lib/Frontend/ASTUnit.cpp
index a7fbcda8fc..8143263ca2 100644
--- a/lib/Frontend/ASTUnit.cpp
+++ b/lib/Frontend/ASTUnit.cpp
@@ -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.