File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -521,6 +521,8 @@ ActorIsolationRestriction ActorIsolationRestriction::forDeclaration(
521
521
if (cast<ValueDecl>(decl)->isLocalCapture ())
522
522
return forUnrestricted ();
523
523
524
+ auto isolation = getActorIsolation (cast<ValueDecl>(decl));
525
+
524
526
// 'let' declarations are immutable, so they can be accessed across
525
527
// actors.
526
528
bool isAccessibleAcrossActors = false ;
@@ -555,7 +557,7 @@ ActorIsolationRestriction ActorIsolationRestriction::forDeclaration(
555
557
}
556
558
557
559
// Determine the actor isolation of the given declaration.
558
- switch (auto isolation = getActorIsolation (cast<ValueDecl>(decl)) ) {
560
+ switch (isolation) {
559
561
case ActorIsolation::ActorInstance:
560
562
// Protected actor instance members can only be accessed on 'self'.
561
563
return forActorSelf (isolation.getActor (),
You can’t perform that action at this time.
0 commit comments