diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-10-22 22:50:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-10-22 22:50:17 +0000 |
commit | 4825fd7fbb3fe87cdf8da9bccc1361fac45bdf2d (patch) | |
tree | 7ba6c1f66ba3c603ae377cd2d3b64f78c5282fc6 /lib/Frontend/ChainedIncludesSource.cpp | |
parent | c635710bcbb9598acd5a14647ba7ca28bee89a68 (diff) |
Distinguish the various kinds of AST file loading failures:
file corruption, compiler version mismatch, target/language
configuration mismatch, out-of-date AST file. No functionality change
yet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@166446 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/ChainedIncludesSource.cpp')
-rw-r--r-- | lib/Frontend/ChainedIncludesSource.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Frontend/ChainedIncludesSource.cpp b/lib/Frontend/ChainedIncludesSource.cpp index 5f7ff74bc6..bfe0693ad4 100644 --- a/lib/Frontend/ChainedIncludesSource.cpp +++ b/lib/Frontend/ChainedIncludesSource.cpp @@ -46,7 +46,10 @@ static ASTReader *createASTReader(CompilerInstance &CI, return Reader.take(); case ASTReader::Failure: - case ASTReader::IgnorePCH: + case ASTReader::OutOfDate: + case ASTReader::VersionMismatch: + case ASTReader::ConfigurationMismatch: + case ASTReader::HadErrors: break; } return 0; |