mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[IRGen] Adjust element size of offset vector to 32-bit for structs
Type of elements contained by field offsets vector can be adjusted to 32-bit integers (from being pointer sized) to safe space in the binary since segment size is limited to 4 GB. Resolves: rdar://problem/36560486
This commit is contained in:
@@ -942,13 +942,13 @@ FUNCTION(InitClassMetadata,
|
||||
// StructLayoutFlags flags,
|
||||
// size_t numFields,
|
||||
// TypeLayout * const *fieldTypes,
|
||||
// size_t *fieldOffsets);
|
||||
// uint32_t *fieldOffsets);
|
||||
FUNCTION(InitStructMetadata,
|
||||
swift_initStructMetadata, C_CC,
|
||||
RETURNS(VoidTy),
|
||||
ARGS(TypeMetadataPtrTy, SizeTy, SizeTy,
|
||||
Int8PtrPtrTy->getPointerTo(0),
|
||||
SizeTy->getPointerTo()),
|
||||
Int32Ty->getPointerTo()),
|
||||
ATTRS(NoUnwind))
|
||||
|
||||
// void swift_initEnumMetadataSingleCase(Metadata *enumType,
|
||||
|
||||
Reference in New Issue
Block a user