fix a bunch of regressions I introduced :(

llvm-svn: 42846
This commit is contained in:
Chris Lattner 2007-10-10 23:31:03 +00:00
parent 783a7a0698
commit 7b4ab65c7d
1 changed files with 1 additions and 1 deletions

View File

@ -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) {