Remove ActorIsolation::DistributedActorInstance.

The distributed case is distinguishable from the non-distributed case
based on the actor type itself for those rare cases where we care. The
vast majority of code is simplified by treating this identically to
`ActorInstance`.
This commit is contained in:
Doug Gregor
2022-02-09 11:16:23 -08:00
parent f417630054
commit a37f291c18
12 changed files with 16 additions and 80 deletions

View File

@@ -568,7 +568,7 @@ void SILGenFunction::emitDistributedActorClassMemberDestruction(
B.emitBlock(remoteMemberDestroyBB);
for (VarDecl *vd : cd->getStoredProperties()) {
if (getActorIsolation(vd) == ActorIsolation::DistributedActorInstance)
if (getActorIsolation(vd) == ActorIsolation::ActorInstance)
continue;
destroyClassMember(cleanupLoc, selfValue, vd);