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

Use the same underlying type for bitfields

MSVC allocates fresh storage for consecutive bitfields with different
underlying types.

llvm-svn: 273645
This commit is contained in:
David Majnemer 2016-06-24 04:05:25 +00:00
parent f2b411238d
commit 6d68618b1a
3 changed files with 3 additions and 3 deletions

View File

@ -151,7 +151,7 @@ class AliasSet : public ilist_node<AliasSet> {
unsigned Alias : 1;
/// True if this alias set contains volatile loads or stores.
bool Volatile : 1;
unsigned Volatile : 1;
void addRef() { ++RefCount; }
void dropRef(AliasSetTracker &AST) {

View File

@ -171,7 +171,7 @@ public:
struct LiveOutInfo {
unsigned NumSignBits : 31;
bool IsValid : 1;
unsigned IsValid : 1;
APInt KnownOne, KnownZero;
LiveOutInfo() : NumSignBits(0), IsValid(true), KnownOne(1, 0),
KnownZero(1, 0) {}

View File

@ -87,7 +87,7 @@ protected:
/// IsUsed - True if this symbol has been used.
mutable unsigned IsUsed : 1;
mutable bool IsRegistered : 1;
mutable unsigned IsRegistered : 1;
/// This symbol is visible outside this translation unit.
mutable unsigned IsExternal : 1;