File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change @@ -554,17 +554,6 @@ swift_auth_code(T value, unsigned extra) {
554
554
#endif
555
555
}
556
556
557
- template <typename T>
558
- SWIFT_RUNTIME_ATTRIBUTE_ALWAYS_INLINE static inline T
559
- swift_auth_code_function (T value, unsigned extra) {
560
- #if SWIFT_PTRAUTH
561
- return (T)ptrauth_auth_function ((void *)value,
562
- ptrauth_key_function_pointer, extra);
563
- #else
564
- return value;
565
- #endif
566
- }
567
-
568
557
// / Does this platform support backtrace-on-crash?
569
558
#ifdef __APPLE__
570
559
# include < TargetConditionals.h>
Original file line number Diff line number Diff line change @@ -2574,7 +2574,7 @@ static void swift_task_deinitOnExecutorImpl(void *object,
2574
2574
SerialExecutorRef newExecutor,
2575
2575
size_t rawFlags) {
2576
2576
// Sign the function pointer
2577
- work = swift_auth_code_function (
2577
+ work = swift_auth_code (
2578
2578
work, SpecialPointerAuthDiscriminators::DeinitWorkFunction);
2579
2579
// If the current executor is compatible with running the new executor,
2580
2580
// we can just immediately continue running with the resume function
Original file line number Diff line number Diff line change @@ -1763,7 +1763,7 @@ swift_task_addCancellationHandlerImpl(
1763
1763
void *context) {
1764
1764
void *allocation =
1765
1765
swift_task_alloc (sizeof (CancellationNotificationStatusRecord));
1766
- auto unsigned_handler = swift_auth_code_function (handler,
1766
+ auto unsigned_handler = swift_auth_code (handler,
1767
1767
SpecialPointerAuthDiscriminators::CancellationNotificationFunction);
1768
1768
auto *record = ::new (allocation)
1769
1769
CancellationNotificationStatusRecord (unsigned_handler, context);
@@ -1818,7 +1818,7 @@ swift_task_addPriorityEscalationHandlerImpl(
1818
1818
void *context) {
1819
1819
void *allocation =
1820
1820
swift_task_alloc (sizeof (EscalationNotificationStatusRecord));
1821
- auto unsigned_handler = swift_auth_code_function (handler,
1821
+ auto unsigned_handler = swift_auth_code (handler,
1822
1822
SpecialPointerAuthDiscriminators::EscalationNotificationFunction);
1823
1823
auto *record = ::new (allocation)
1824
1824
EscalationNotificationStatusRecord (unsigned_handler, context);
You can’t perform that action at this time.
0 commit comments