]> granicus.if.org Git - clang/commitdiff
Use '&' to test StartOfLine flag.
authorTed Kremenek <kremenek@apple.com>
Thu, 18 Dec 2008 18:15:29 +0000 (18:15 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 18 Dec 2008 18:15:29 +0000 (18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61205 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Lex/PTHLexer.cpp

index c05b4b001042f3a76d0aa8e286dc24db0194a4f7..6a6290f933b116e2f939cdc7af71217810d475e6 100644 (file)
@@ -142,7 +142,7 @@ void PTHLexer::DiscardToEndOfLine() {
 
     // 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;