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(
53525352 // Resolve the relative reference to the witness function.
53535353 int32_t offset;
53545354 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);
53565356
53575357 // Call the witness function.
5358- auto witnessFn = ( AssociatedWitnessTableAccessFunction *)ptr ;
5358+ AssociatedWitnessTableAccessFunction *witnessFn ;
53595359#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;
53635365#endif
53645366
53655367 auto assocWitnessTable = witnessFn (assocType, conformingType, wtable);
You can’t perform that action at this time.
0 commit comments