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 a3db2b0..da00237 100644
--- a/Driver/PrintPreprocessedOutput.cpp
+++ b/Driver/PrintPreprocessedOutput.cpp
@@ -541,7 +541,7 @@
   // 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) {