File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,13 @@ extern "C" SWIFT_CC(swift) void _swift_task_enqueueOnExecutor(
506
506
static swift_task_is_current_executor_flag
507
507
_getIsolationCheckingOptionsFromExecutorWitnessTable (const SerialExecutorWitnessTable *_wtable) {
508
508
const WitnessTable* wtable = reinterpret_cast <const WitnessTable*>(_wtable);
509
+ #if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES
510
+ auto description = lookThroughOptionalConditionalWitnessTable (
511
+ reinterpret_cast <const RelativeWitnessTable*>(wtable))
512
+ ->getDescription ();
513
+ #else
509
514
auto description = wtable->getDescription ();
515
+ #endif
510
516
if (!description) {
511
517
return swift_task_is_current_executor_flag::None;
512
518
}
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ static bool _checkWitnessTableIsolation(
444
444
llvm::ArrayRef<const void *> conditionalArgs,
445
445
ConformanceExecutionContext &context
446
446
) {
447
- #if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES && SWIFT_PTRAUTH
447
+ #if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES
448
448
auto description = lookThroughOptionalConditionalWitnessTable (
449
449
reinterpret_cast <const RelativeWitnessTable *>(wtable))
450
450
->getDescription ();
You can’t perform that action at this time.
0 commit comments