Skip to content

Commit e0cdbec

Browse files
committed
[NFC] Remove an unused local variable in isolated parameter checking.
(cherry picked from commit 4ff4cfd)
1 parent a8d46aa commit e0cdbec

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

lib/Sema/TypeCheckConcurrency.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3469,17 +3469,6 @@ namespace {
34693469
if (getIsolatedActor(arg) || isa<CurrentContextIsolationExpr>(arg))
34703470
continue;
34713471

3472-
// An isolated parameter was provided with a non-isolated argument.
3473-
// FIXME: The modeling of unsatisfiedIsolation is not great here.
3474-
// We'd be better off using something more like closure isolation
3475-
// that can talk about specific parameters.
3476-
auto nominal = getType(arg)->getAnyNominal();
3477-
if (!nominal) {
3478-
// FIXME: This is wrong for distributed actors.
3479-
nominal = getType(arg)->getASTContext().getProtocol(
3480-
KnownProtocolKind::Actor);
3481-
}
3482-
34833472
auto calleeIsolation = ActorIsolation::forActorInstanceParameter(
34843473
const_cast<Expr *>(arg->findOriginalValue()), paramIdx);
34853474

0 commit comments

Comments
 (0)