[cfe-commits] r42846 - /cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Chris Lattner sabre at nondot.org
Wed Oct 10 16:31:03 PDT 2007


Author: lattner
Date: Wed Oct 10 18:31:03 2007
New Revision: 42846

URL: http://llvm.org/viewvc/llvm-project?rev=42846&view=rev
Log:
fix a bunch of regressions I introduced :(

Modified:
    cfe/trunk/Driver/PrintPreprocessedOutput.cpp

Modified: cfe/trunk/Driver/PrintPreprocessedOutput.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/PrintPreprocessedOutput.cpp?rev=42846&r1=42845&r2=42846&view=diff

==============================================================================
--- cfe/trunk/Driver/PrintPreprocessedOutput.cpp (original)
+++ cfe/trunk/Driver/PrintPreprocessedOutput.cpp Wed Oct 10 18:31:03 2007
@@ -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) {





More information about the cfe-commits mailing list