forked from OSchip/llvm-project
fix a bunch of regressions I introduced :(
llvm-svn: 42846
This commit is contained in:
parent
783a7a0698
commit
7b4ab65c7d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue