File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 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(
506506static swift_task_is_current_executor_flag
507507_getIsolationCheckingOptionsFromExecutorWitnessTable (const SerialExecutorWitnessTable *_wtable) {
508508 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
509514 auto description = wtable->getDescription ();
515+ #endif
510516 if (!description) {
511517 return swift_task_is_current_executor_flag::None;
512518 }
Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ static bool _checkWitnessTableIsolation(
444444 llvm::ArrayRef<const void *> conditionalArgs,
445445 ConformanceExecutionContext &context
446446) {
447- #if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES && SWIFT_PTRAUTH
447+ #if SWIFT_STDLIB_USE_RELATIVE_PROTOCOL_WITNESS_TABLES
448448 auto description = lookThroughOptionalConditionalWitnessTable (
449449 reinterpret_cast <const RelativeWitnessTable *>(wtable))
450450 ->getDescription ();
You can’t perform that action at this time.
0 commit comments