diff options
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) { |