[MC] Use unsigned for the Kind bitfield in MCSymbol
[oota-llvm.git] / include / llvm / MC / MCSymbol.h
index 9875d4a3fa4cb7577bd401bfb0132b2a6b15d144..3f69bc99f3ba6973af3ee049662af68af55296aa 100644 (file)
@@ -90,7 +90,9 @@ protected:
   /// This symbol is private extern.
   mutable unsigned IsPrivateExtern : 1;
 
-  SymbolKind Kind : 2;
+  /// LLVM RTTI discriminator. This is actually a SymbolKind enumerator, but is
+  /// unsigned to avoid sign extension and achieve better bitpacking with MSVC.
+  unsigned Kind : 2;
 
   /// Index field, for use by the object file implementation.
   mutable uint32_t Index = 0;