]> granicus.if.org Git - clang/commitdiff
Use unsigned char instead of unsigned : 8 to make the optimizer happier.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 4 Nov 2009 00:34:40 +0000 (00:34 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 4 Nov 2009 00:34:40 +0000 (00:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@85985 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Lex/Token.h

index fa7ba54478eaa43fc2f375b3a7b3fdcbd1fb7be7..8d910959b9fa8644fbbd7d1d3e2087cf800fc03a 100644 (file)
@@ -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: