Group the 'unsigned' members after the pointer to avoid 4 bytes of
authorChandler Carruth <chandlerc@gmail.com>
Wed, 13 Jun 2012 21:44:07 +0000 (21:44 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 13 Jun 2012 21:44:07 +0000 (21:44 +0000)
padding on x86-64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158421 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/DenseMap.h

index 07a17535fc976e8ca9822d30a2fbb02efd14c7ea..17131a21400be0b6fe2c1ff54cb65546f1c53208 100644 (file)
@@ -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: