summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:25 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-06-24 04:05:25 +0000
commit8970c8886cc9697c84318e52b6da6a07cc72b94f (patch)
tree358e3b22f854a8789442043e650d7d33c120aabf /include
parent30ef1b33fa41985da95d16c9761640cdf221212f (diff)
Use the same underlying type for bitfields
MSVC allocates fresh storage for consecutive bitfields with different underlying types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273645 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/AliasSetTracker.h2
-rw-r--r--include/llvm/CodeGen/FunctionLoweringInfo.h2
-rw-r--r--include/llvm/MC/MCSymbol.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Analysis/AliasSetTracker.h b/include/llvm/Analysis/AliasSetTracker.h
index 760a7640ae2..cec56889c0a 100644
--- a/include/llvm/Analysis/AliasSetTracker.h
+++ b/include/llvm/Analysis/AliasSetTracker.h
@@ -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) {
diff --git a/include/llvm/CodeGen/FunctionLoweringInfo.h b/include/llvm/CodeGen/FunctionLoweringInfo.h
index b948d0199c6..010e34179ef 100644
--- a/include/llvm/CodeGen/FunctionLoweringInfo.h
+++ b/include/llvm/CodeGen/FunctionLoweringInfo.h
@@ -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) {}
diff --git a/include/llvm/MC/MCSymbol.h b/include/llvm/MC/MCSymbol.h
index 2c0fa083187..23e34b7869a 100644
--- a/include/llvm/MC/MCSymbol.h
+++ b/include/llvm/MC/MCSymbol.h
@@ -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;