@@ -2975,7 +2975,7 @@ ConstraintSystem::matchFunctionIsolations(FunctionType *func1,
29752975 return true;
29762976
29772977 // A thunk is going to pass `nil` to the isolated parameter.
2978- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
2978+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
29792979 return matchIfConversion();
29802980
29812981 // Erasing global-actor isolation to non-isolation can admit data
@@ -2999,10 +2999,10 @@ ConstraintSystem::matchFunctionIsolations(FunctionType *func1,
29992999 llvm_unreachable("bad kind");
30003000
30013001 // Converting to a caller isolated async function type.
3002- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
3002+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
30033003 switch (isolation1.getKind()) {
30043004 // Exact match.
3005- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
3005+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
30063006 return true;
30073007
30083008 // Global actor: Thunk will hop to the global actor
@@ -3049,7 +3049,7 @@ ConstraintSystem::matchFunctionIsolations(FunctionType *func1,
30493049
30503050 // A thunk is going to pass in an instance of a global actor
30513051 // to the isolated parameter.
3052- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
3052+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
30533053 return matchIfConversion();
30543054
30553055 // Parameter isolation cannot be altered in the same way.
@@ -3079,7 +3079,7 @@ ConstraintSystem::matchFunctionIsolations(FunctionType *func1,
30793079 return matchIfConversion();
30803080
30813081 // A thunk is going to forward the isolation.
3082- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
3082+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
30833083 return matchIfConversion();
30843084
30853085 // Don't allow dynamically-isolated function types to convert to
@@ -3104,7 +3104,7 @@ ConstraintSystem::matchFunctionIsolations(FunctionType *func1,
31043104
31053105 // It's not possible to form a thunk for this case because
31063106 // we don't know what to pass to the isolated parameter.
3107- case FunctionTypeIsolation::Kind::NonIsolatedCaller :
3107+ case FunctionTypeIsolation::Kind::NonIsolatedNonsending :
31083108 return false;
31093109
31103110 // Parameter isolation is value-dependent and can't be erased in the
0 commit comments