mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Flatten the aligned-char-array utility template to be a directly
templated union at the request of Richard Smith. This makes it substantially easier to type. =] git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@162072 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -687,8 +687,7 @@ class SmallDenseMap
|
||||
|
||||
/// A "union" of an inline bucket array and the struct representing
|
||||
/// a large bucket. This union will be discriminated by the 'Small' bit.
|
||||
typename AlignedCharArray<BucketT[InlineBuckets], LargeRep>::union_type
|
||||
storage;
|
||||
AlignedCharArrayUnion<BucketT[InlineBuckets], LargeRep> storage;
|
||||
|
||||
public:
|
||||
explicit SmallDenseMap(unsigned NumInitBuckets = 0) {
|
||||
@@ -834,8 +833,7 @@ public:
|
||||
return; // Nothing to do.
|
||||
|
||||
// First move the inline buckets into a temporary storage.
|
||||
typename AlignedCharArray<BucketT[InlineBuckets]>::union_type
|
||||
TmpStorage;
|
||||
AlignedCharArrayUnion<BucketT[InlineBuckets]> TmpStorage;
|
||||
BucketT *TmpBegin = reinterpret_cast<BucketT *>(TmpStorage.buffer);
|
||||
BucketT *TmpEnd = TmpBegin;
|
||||
|
||||
|
Reference in New Issue
Block a user