forked from OSchip/llvm-project
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:
parent
c5b974e6d2
commit
7e80640aa1
|
@ -51,7 +51,7 @@ protected:
|
||||||
enum StorageType { Uniqued, Distinct, Temporary };
|
enum StorageType { Uniqued, Distinct, Temporary };
|
||||||
|
|
||||||
/// \brief Storage flag for non-uniqued, otherwise unowned, metadata.
|
/// \brief Storage flag for non-uniqued, otherwise unowned, metadata.
|
||||||
StorageType Storage : 2;
|
unsigned Storage : 2;
|
||||||
// TODO: expose remaining bits to subclasses.
|
// TODO: expose remaining bits to subclasses.
|
||||||
|
|
||||||
unsigned short SubclassData16;
|
unsigned short SubclassData16;
|
||||||
|
|
Loading…
Reference in New Issue