mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #82815 from DougGregor/isolated-conformance-without-concurrency-runtime
This commit is contained in:
@@ -1474,8 +1474,9 @@ static bool swift_isInConformanceExecutionContextImpl(
|
||||
return true;
|
||||
|
||||
if (context->globalActorIsolationType) {
|
||||
// If the hook is not installed, assume we're on the right actor.
|
||||
if (!_swift_task_isCurrentGlobalActorHook)
|
||||
return false;
|
||||
return true;
|
||||
|
||||
// Check whether we are running on this global actor.
|
||||
if (!_swift_task_isCurrentGlobalActorHook(
|
||||
|
||||
Reference in New Issue
Block a user