1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

[MC] Use unsigned for the Kind bitfield in MCSymbol

Fixes most of the test suite on Windows with clang-cl.

I'm not sure why the test suite was passing with MSVC 2013. Maybe they
changed their behavior and we are emulating their old sign extension
behavior. I think this deserves more investigation, but I want to green
the bot first.

llvm-svn: 239357
This commit is contained in:
Reid Kleckner 2015-06-08 22:12:44 +00:00
parent 64ffb91c79
commit 01e8a6c679

View 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;