[cfe-commits] r93794 - /cfe/trunk/lib/Lex/PPDirectives.cpp

Chris Lattner sabre at nondot.org
Mon Jan 18 14:33:01 PST 2010


Author: lattner
Date: Mon Jan 18 16:33:01 2010
New Revision: 93794

URL: http://llvm.org/viewvc/llvm-project?rev=93794&view=rev
Log:
simplify the code for skipping in a #if 0 block.  The CurLexer
pointer is always non-null because the PTH case exits earlier
in the method.

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

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

==============================================================================
--- cfe/trunk/lib/Lex/PPDirectives.cpp (original)
+++ cfe/trunk/lib/Lex/PPDirectives.cpp Mon Jan 18 16:33:01 2010
@@ -160,10 +160,7 @@
   CurPPLexer->LexingRawMode = true;
   Token Tok;
   while (1) {
-    if (CurLexer)
-      CurLexer->Lex(Tok);
-    else
-      CurPTHLexer->Lex(Tok);
+    CurLexer->Lex(Tok);
 
     // If this is the end of the buffer, we have an error.
     if (Tok.is(tok::eof)) {





More information about the cfe-commits mailing list