diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-12-18 18:15:29 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-12-18 18:15:29 +0000 |
commit | 9443f0ea5e233948c36b180b8551987df0fbdd45 (patch) | |
tree | 29603b73b8a06361b8de100a8b4afcb09baa6f17 /clang/lib/Lex/PTHLexer.cpp | |
parent | f8f0c6b1bcf04f2a959e3afb8ef628d990716b50 (diff) | |
download | bcm5719-llvm-9443f0ea5e233948c36b180b8551987df0fbdd45.tar.gz bcm5719-llvm-9443f0ea5e233948c36b180b8551987df0fbdd45.zip |
Use '&' to test StartOfLine flag.
llvm-svn: 61205
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index c05b4b00104..6a6290f933b 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/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; |