From: Chris Lattner Date: Wed, 10 Oct 2007 23:31:03 +0000 (+0000) Subject: fix a bunch of regressions I introduced :( X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a1a5178232cd94bf96da977830330084d5a857b6;p=clang fix a bunch of regressions I introduced :( git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42846 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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()), "")); while (1) {