summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/DenseMap.h
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2012-06-13 21:44:07 +0000
committerChandler Carruth <chandlerc@gmail.com>2012-06-13 21:44:07 +0000
commit14d81c416c72dc779dd31a81f68ebd6a6456f6f0 (patch)
treeca0ee4556dd19f6bb5eb1b931de90e2bd55462d5 /include/llvm/ADT/DenseMap.h
parent8782707f5074ab3951eb6424394bc8d2a2fa584a (diff)
downloadllvm-14d81c416c72dc779dd31a81f68ebd6a6456f6f0.tar.gz
llvm-14d81c416c72dc779dd31a81f68ebd6a6456f6f0.tar.bz2
llvm-14d81c416c72dc779dd31a81f68ebd6a6456f6f0.tar.xz
Group the 'unsigned' members after the pointer to avoid 4 bytes of
padding on x86-64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158421 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DenseMap.h')
-rw-r--r--include/llvm/ADT/DenseMap.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h
index 07a17535fc..17131a2140 100644
--- a/include/llvm/ADT/DenseMap.h
+++ b/include/llvm/ADT/DenseMap.h
@@ -38,9 +38,9 @@ template<typename KeyT, typename ValueT,
typename KeyInfoT = DenseMapInfo<KeyT> >
class DenseMap {
typedef std::pair<KeyT, ValueT> BucketT;
- unsigned NumBuckets;
BucketT *Buckets;
+ unsigned NumBuckets;
unsigned NumEntries;
unsigned NumTombstones;
public: