mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Minor cosmetic cleanups in the calculation of alignments for
StringMapEntry objects. No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
87f3870db9
commit
6740463c74
@ -140,10 +140,12 @@ public:
|
||||
// Okay, the item doesn't already exist, and 'Bucket' is the bucket to fill
|
||||
// in. Allocate a new item with space for the string at the end and a null
|
||||
// terminator.
|
||||
unsigned AllocSize = sizeof(StringMapEntry)+KeyLength+1;
|
||||
|
||||
StringMapEntry *NewItem = static_cast<StringMapEntry*>(
|
||||
Allocator.Allocate(AllocSize, AlignOf<StringMapEntry>::Alignment));
|
||||
unsigned AllocSize = sizeof(StringMapEntry)+KeyLength+1;
|
||||
unsigned Alignment = alignof<StringMapEntry>();
|
||||
|
||||
StringMapEntry *NewItem =
|
||||
static_cast<StringMapEntry*>(Allocator.Allocate(AllocSize,Alignment));
|
||||
|
||||
// Default construct the value.
|
||||
new (NewItem) StringMapEntry(KeyLength);
|
||||
|
Loading…
Reference in New Issue
Block a user