Skip to content

Commit 4ff4cfd

Browse files
committed
[NFC] Remove an unused local variable in isolated parameter checking.
1 parent 2804daf commit 4ff4cfd

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
@@ -3475,17 +3475,6 @@ namespace {
34753475
if (getIsolatedActor(arg) || isa<CurrentContextIsolationExpr>(arg))
34763476
continue;
34773477

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

0 commit comments

Comments
 (0)