diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-12-03 09:13:06 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-03 09:13:06 +0000 |
commit | 93ebb1ba9f35ab5e7bff37c471baeb360eeb0b04 (patch) | |
tree | c83562ef561260f6a3e73125c9bbe48de999daf5 /lib/Frontend/CompilerInvocation.cpp | |
parent | 3be0d19503f8291b1581a39a8f6ca01d74bf5cb1 (diff) | |
download | clang-93ebb1ba9f35ab5e7bff37c471baeb360eeb0b04.tar.gz |
Switch PCHReader::getOriginalSourceFile to use proper diagnostics.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90434 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index ccf60fb9e3..2ecbcfe862 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -1205,11 +1205,9 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args, // PCH is handled specially, we need to extra the original include path. if (it->getOption().matches(OPT_include_pch)) { std::string OriginalFile = - PCHReader::getOriginalSourceFile(it->getValue(Args)); - - // FIXME: Don't fail like this. + PCHReader::getOriginalSourceFile(it->getValue(Args), Diags); if (OriginalFile.empty()) - exit(1); + continue; Opts.Includes.push_back(OriginalFile); } else |