File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -5352,14 +5352,16 @@ static const WitnessTable *swift_getAssociatedConformanceWitnessSlowImpl(
5352
5352
// Resolve the relative reference to the witness function.
5353
5353
int32_t offset;
5354
5354
memcpy (&offset, mangledName.data () + 1 , 4 );
5355
- auto ptr = detail::applyRelativeOffset (mangledName.data () + 1 , offset);
5355
+ uintptr_t ptr = detail::applyRelativeOffset (mangledName.data () + 1 , offset);
5356
5356
5357
5357
// Call the witness function.
5358
- auto witnessFn = ( AssociatedWitnessTableAccessFunction *)ptr ;
5358
+ AssociatedWitnessTableAccessFunction *witnessFn ;
5359
5359
#if SWIFT_PTRAUTH
5360
- witnessFn = ptrauth_sign_unauthenticated (witnessFn,
5361
- ptrauth_key_function_pointer,
5362
- 0 );
5360
+ witnessFn =
5361
+ (AssociatedWitnessTableAccessFunction *)ptrauth_sign_unauthenticated (
5362
+ (void *)ptr, ptrauth_key_function_pointer, 0 );
5363
+ #else
5364
+ witnessFn = (AssociatedWitnessTableAccessFunction *)ptr;
5363
5365
#endif
5364
5366
5365
5367
auto assocWitnessTable = witnessFn (assocType, conformingType, wtable);
You can’t perform that action at this time.
0 commit comments