From: Daniel Dunbar Date: Wed, 4 Nov 2009 00:34:40 +0000 (+0000) Subject: Use unsigned char instead of unsigned : 8 to make the optimizer happier. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=082fb9ae304a25aa6be1f74d9b9720c52a96231e;p=clang Use unsigned char instead of unsigned : 8 to make the optimizer happier. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85985 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/Token.h b/include/clang/Lex/Token.h index fa7ba54478..8d910959b9 100644 --- a/include/clang/Lex/Token.h +++ b/include/clang/Lex/Token.h @@ -63,12 +63,12 @@ class Token { /// Kind - The actual flavor of token this is. /// - unsigned Kind : 8; // DON'T make Kind a 'tok::TokenKind'; + unsigned char Kind; // DON'T make Kind a 'tok::TokenKind'; // MSVC will treat it as a signed char and // TokenKinds > 127 won't be handled correctly. /// Flags - Bits we track about this token, members of the TokenFlags enum. - unsigned Flags : 8; + unsigned char Flags; public: // Various flags set per token: