From: Ted Kremenek Date: Thu, 18 Dec 2008 18:15:29 +0000 (+0000) Subject: Use '&' to test StartOfLine flag. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80d2f3059326f99ebf7c867db1c7f106ec9485f5;p=clang Use '&' to test StartOfLine flag. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61205 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index c05b4b0010..6a6290f933 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -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;