File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -2560,12 +2560,11 @@ final internal class _Native${Self}StorageImpl<${TypeParameters}> :
2560
2560
return strideof(Key.self) * capacity + padding
2561
2561
}
2562
2562
2563
+ %if Self == 'Dictionary':
2563
2564
/// Returns the bytes necessary to store 'capacity' values and padding to
2564
2565
/// align the start to the alignment of the 'Value' type assuming a base
2565
2566
/// address aligned to the maximum of the alignment of the 'Key' type and the
2566
2567
/// alignment of a word.
2567
-
2568
- %if Self == 'Dictionary':
2569
2568
internal static func bytesForValues(capacity: Int) -> Int {
2570
2569
let maxPrevAlignment = max(alignof(Key.self), alignof(UInt))
2571
2570
let padding = max(0, alignof(Value.self) - maxPrevAlignment)
You can’t perform that action at this time.
0 commit comments