@@ -66,10 +66,6 @@ class ActorIsolation {
6666 // / The declaration is isolated to a global actor. It can refer to other
6767 // / entities with the same global actor.
6868 GlobalActor,
69- // / The declaration is isolated to a global actor but with the "unsafe"
70- // / annotation, which means that we only enforce the isolation if we're
71- // / coming from something with specific isolation.
72- GlobalActorUnsafe,
7369 };
7470
7571private:
@@ -139,7 +135,7 @@ class ActorIsolation {
139135 .Case (" global_actor" ,
140136 std::optional<ActorIsolation>(ActorIsolation::GlobalActor))
141137 .Case (" global_actor_unsafe" , std::optional<ActorIsolation>(
142- ActorIsolation::GlobalActorUnsafe ))
138+ ActorIsolation::GlobalActor ))
143139 .Default (std::nullopt );
144140 if (kind == std::nullopt )
145141 return std::nullopt ;
@@ -170,7 +166,6 @@ class ActorIsolation {
170166 switch (getKind ()) {
171167 case ActorInstance:
172168 case GlobalActor:
173- case GlobalActorUnsafe:
174169 return true ;
175170
176171 case Unspecified:
@@ -185,7 +180,7 @@ class ActorIsolation {
185180 VarDecl *getActorInstance () const ;
186181
187182 bool isGlobalActor () const {
188- return getKind () == GlobalActor || getKind () == GlobalActorUnsafe ;
183+ return getKind () == GlobalActor;
189184 }
190185
191186 bool isMainActor () const ;
@@ -237,7 +232,6 @@ class ActorIsolation {
237232 lhs.parameterIndex == rhs.parameterIndex );
238233
239234 case GlobalActor:
240- case GlobalActorUnsafe:
241235 llvm_unreachable (" Global actors handled above" );
242236 }
243237 }
@@ -270,9 +264,6 @@ class ActorIsolation {
270264 case GlobalActor:
271265 os << " global_actor" ;
272266 return ;
273- case GlobalActorUnsafe:
274- os << " global_actor_unsafe" ;
275- return ;
276267 }
277268 llvm_unreachable (" Covered switch isn't covered?!" );
278269 }
0 commit comments