summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Language/ObjC/NSSet.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2019-01-29 22:55:21 +0000
committerZachary Turner <zturner@google.com>2019-01-29 22:55:21 +0000
commit52f8f34377452f8f2bce38b5add360f9dd84c95d (patch)
treedd88eb6f9f401c21f26cc9415aa926b29e68a6dd /lldb/source/Plugins/Language/ObjC/NSSet.cpp
parent7d2192ca7b9957cbc8968b792a7cfa49acefeaba (diff)
downloadbcm5719-llvm-52f8f34377452f8f2bce38b5add360f9dd84c95d.tar.gz
bcm5719-llvm-52f8f34377452f8f2bce38b5add360f9dd84c95d.zip
Fix some warnings in building LLDB.
Differential Revision: https://reviews.llvm.org/D57413 llvm-svn: 352557
Diffstat (limited to 'lldb/source/Plugins/Language/ObjC/NSSet.cpp')
-rw-r--r--lldb/source/Plugins/Language/ObjC/NSSet.cpp22
1 files changed, 6 insertions, 16 deletions
diff --git a/lldb/source/Plugins/Language/ObjC/NSSet.cpp b/lldb/source/Plugins/Language/ObjC/NSSet.cpp
index a1b1b92a3ae..c824d6e2e43 100644
--- a/lldb/source/Plugins/Language/ObjC/NSSet.cpp
+++ b/lldb/source/Plugins/Language/ObjC/NSSet.cpp
@@ -154,28 +154,18 @@ namespace Foundation1437 {
uint32_t _cow;
// __table storage
uint32_t _objs_addr;
- union {
- uint32_t _mutations;
- struct {
- uint32_t _muts;
- uint32_t _used : 26;
- uint32_t _szidx : 6;
- };
- };
+ uint32_t _muts;
+ uint32_t _used : 26;
+ uint32_t _szidx : 6;
};
struct DataDescriptor_64 {
uint64_t _cow;
// __Table storage
uint64_t _objs_addr;
- union {
- uint64_t _mutations;
- struct {
- uint32_t _muts;
- uint32_t _used : 26;
- uint32_t _szidx : 6;
- };
- };
+ uint32_t _muts;
+ uint32_t _used : 26;
+ uint32_t _szidx : 6;
};
using NSSetMSyntheticFrontEnd =
OpenPOWER on IntegriCloud