[cfe-commits] r64503 - /cfe/trunk/lib/Lex/PPLexerChange.cpp

Chris Lattner sabre at nondot.org
Fri Feb 13 15:06:48 PST 2009


Author: lattner
Date: Fri Feb 13 17:06:48 2009
New Revision: 64503

URL: http://llvm.org/viewvc/llvm-project?rev=64503&view=rev
Log:
add an assertion from Alexei Svitkine!


Modified:
    cfe/trunk/lib/Lex/PPLexerChange.cpp

Modified: cfe/trunk/lib/Lex/PPLexerChange.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PPLexerChange.cpp?rev=64503&r1=64502&r2=64503&view=diff

==============================================================================
--- cfe/trunk/lib/Lex/PPLexerChange.cpp (original)
+++ cfe/trunk/lib/Lex/PPLexerChange.cpp Fri Feb 13 17:06:48 2009
@@ -227,8 +227,8 @@
     
     // We're done with the #included file.
     CurLexer.reset();
-  }
-  else {
+  } else {
+    assert(CurPTHLexer && "Got EOF but no current lexer set!");
     CurPTHLexer->getEOF(Result);
     CurPTHLexer.reset();
   }





More information about the cfe-commits mailing list