[cfe-commits] r61205 - /cfe/trunk/lib/Lex/PTHLexer.cpp

Ted Kremenek kremenek at apple.com
Thu Dec 18 10:15:29 PST 2008


Author: kremenek
Date: Thu Dec 18 12:15:29 2008
New Revision: 61205

URL: http://llvm.org/viewvc/llvm-project?rev=61205&view=rev
Log:
Use '&' to test StartOfLine flag.

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

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

==============================================================================
--- cfe/trunk/lib/Lex/PTHLexer.cpp (original)
+++ cfe/trunk/lib/Lex/PTHLexer.cpp Thu Dec 18 12:15:29 2008
@@ -142,7 +142,7 @@
 
     // Read the token flags.  Are we at the start of the next line?
     Token::TokenFlags y = (Token::TokenFlags) (uint8_t) p[1];
-    if (y == Token::StartOfLine) break;
+    if (y & Token::StartOfLine) break;
 
     // Skip to the next token.
     p += DISK_TOKEN_SIZE;





More information about the cfe-commits mailing list