]> granicus.if.org Git - clang/commitdiff
fix a bunch of regressions I introduced :(
authorChris Lattner <sabre@nondot.org>
Wed, 10 Oct 2007 23:31:03 +0000 (23:31 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Oct 2007 23:31:03 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42846 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/PrintPreprocessedOutput.cpp

index a3db2b0997710c1598e81fd586a610e76ffdd1cf..da0023760d1390aecf32ab09caa1167ebdf89534 100644 (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) {