Skip to content

Commit 8cc1451

Browse files
committed
Use an i32 argument instead of size
1 parent a445cf2 commit 8cc1451

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ SWIFT_RUNTIME_EXPORT
10441044
void swift_initRawStructMetadata(StructMetadata *self,
10451045
StructLayoutFlags flags,
10461046
const TypeLayout *likeType,
1047-
size_t count);
1047+
int32_t count);
10481048

10491049
#pragma clang diagnostic pop
10501050

include/swift/Runtime/RuntimeFunctions.def

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2489,12 +2489,12 @@ FUNCTION(GenericInstantiateLayoutString,
24892489
// void swift_initRawStructMetadata(Metadata *structType,
24902490
// StructLayoutFlags flags,
24912491
// const TypeLayout *likeType,
2492-
// size_t count);
2492+
// int32_t count);
24932493
FUNCTION(InitRawStructMetadata,
24942494
swift_initRawStructMetadata,
24952495
C_CC, AlwaysAvailable,
24962496
RETURNS(VoidTy),
2497-
ARGS(TypeMetadataPtrTy, SizeTy, Int8PtrPtrTy->getPointerTo(0), SizeTy),
2497+
ARGS(TypeMetadataPtrTy, SizeTy, Int8PtrPtrTy->getPointerTo(0), Int32Ty),
24982498
ATTRS(NoUnwind),
24992499
EFFECT(MetaData))
25002500

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,7 @@ SWIFT_RUNTIME_EXPORT
29102910
void swift::swift_initRawStructMetadata(StructMetadata *structType,
29112911
StructLayoutFlags layoutFlags,
29122912
const TypeLayout *likeTypeLayout,
2913-
size_t count) {
2913+
int32_t count) {
29142914
auto vwtable = getMutableVWTableForInit(structType, layoutFlags);
29152915

29162916
// The existing vwt function entries are all fine to preserve, the only thing

0 commit comments

Comments
 (0)