File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3280,14 +3280,15 @@ namespace {
3280
3280
}
3281
3281
}
3282
3282
3283
- // Check for an 'async let' autoclosure.
3284
3283
if (auto autoclosure = dyn_cast<AutoClosureExpr>(dc)) {
3285
3284
switch (autoclosure->getThunkKind ()) {
3286
3285
case AutoClosureExpr::Kind::AsyncLet:
3286
+ // Check for an 'async let' autoclosure.
3287
3287
return ReferencedActor (var, isPotentiallyIsolated, ReferencedActor::AsyncLet);
3288
-
3289
3288
case AutoClosureExpr::Kind::DoubleCurryThunk:
3290
3289
case AutoClosureExpr::Kind::SingleCurryThunk:
3290
+ // Curried thunks inherit actor isolation but referencing the thunked
3291
+ // fn shouldn't cause a data race until the fn is actually applied
3291
3292
return ReferencedActor (var, isPotentiallyIsolated, specificNonIsoClosureKind (dc));
3292
3293
case AutoClosureExpr::Kind::None:
3293
3294
break ;
You can’t perform that action at this time.
0 commit comments