We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ed32994 + 15123f5 commit de8bf25Copy full SHA for de8bf25
stdlib/public/runtime/ProtocolConformance.cpp
@@ -1474,8 +1474,9 @@ static bool swift_isInConformanceExecutionContextImpl(
1474
return true;
1475
1476
if (context->globalActorIsolationType) {
1477
+ // If the hook is not installed, assume we're on the right actor.
1478
if (!_swift_task_isCurrentGlobalActorHook)
- return false;
1479
+ return true;
1480
1481
// Check whether we are running on this global actor.
1482
if (!_swift_task_isCurrentGlobalActorHook(
0 commit comments