Skip to content

Commit a46abb0

Browse files
committed
[embedded] Put __ptrauth specifier at the right spot so that it parses even in C++ mode
1 parent 8009f45 commit a46abb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/SwiftShims/swift/shims/EmbeddedShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ static inline void _swift_embedded_invoke_heap_object_destroy(void *object) {
3535
void *metadata = *(void **)object;
3636
void **destroy_location = &((void **)metadata)[1];
3737
#if __has_feature(ptrauth_calls)
38-
(*(__ptrauth(0,1,0xbbbf) HeapObjectDestroyer *)destroy_location)(object);
38+
(*(HeapObjectDestroyer __ptrauth(0,1,0xbbbf) *)destroy_location)(object);
3939
#else
4040
(*(HeapObjectDestroyer *)destroy_location)(object);
4141
#endif

0 commit comments

Comments
 (0)