IR: Store StorageType as an unsigned bitfield

Use `unsigned` instead of `StorageType` for the bitfield to prevent MSVC
from treating the top bit of the bitfield as a sign bit.

llvm-svn: 226570
This commit is contained in:
Duncan P. N. Exon Smith 2015-01-20 15:51:14 +00:00
parent c5b974e6d2
commit 7e80640aa1
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ protected:
enum StorageType { Uniqued, Distinct, Temporary };
/// \brief Storage flag for non-uniqued, otherwise unowned, metadata.
StorageType Storage : 2;
unsigned Storage : 2;
// TODO: expose remaining bits to subclasses.
unsigned short SubclassData16;