diff options
author | Chris Lattner <sabre@nondot.org> | 2007-10-10 23:31:03 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-10-10 23:31:03 +0000 |
commit | a1a5178232cd94bf96da977830330084d5a857b6 (patch) | |
tree | 86c0056a3ad2f2500700084d4976281387531a64 /Driver/PrintPreprocessedOutput.cpp | |
parent | e21b573bbfa7f53de694b81455d0627b7a3b6554 (diff) |
fix a bunch of regressions I introduced :(
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/PrintPreprocessedOutput.cpp')
-rw-r--r-- | Driver/PrintPreprocessedOutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Driver/PrintPreprocessedOutput.cpp b/Driver/PrintPreprocessedOutput.cpp index a3db2b0997..da0023760d 100644 --- a/Driver/PrintPreprocessedOutput.cpp +++ b/Driver/PrintPreprocessedOutput.cpp @@ -541,7 +541,7 @@ void clang::DoPrintPreprocessedInput(unsigned MainFileID, Preprocessor &PP, // start. const SourceManager &SourceMgr = PP.getSourceManager(); do PP.Lex(Tok); - while (Tok.isNot(tok::eof) && + while (Tok.isNot(tok::eof) && Tok.getLocation().isFileID() && !strcmp(SourceMgr.getSourceName(Tok.getLocation()), "<predefines>")); while (1) { |