You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
apply [caller_isolation=nonisolated] [callee_isolation=global_actor] %transferNonSendableKlass(%value) : $@convention(thin) @async (@guaranteed NonSendableKlass) -> () // expected-warning {{transferring value of non-Sendable type 'NonSendableKlass' from nonisolated context to global actor '<null>'-isolated context; later accesses could race}}
1330
+
1331
+
unmanaged_retain_value %value : $NonSendableKlass // expected-note {{access here could race}}
1332
+
destroy_value %value : $NonSendableKlass
1333
+
destroy_addr %a : $*NonSendableKlass
1334
+
dealloc_stack %a : $*NonSendableKlass
1335
+
1336
+
%9999 = tuple ()
1337
+
return %9999 : $()
1338
+
}
1339
+
1340
+
sil [ossa] @unmanaged_release_test : $@convention(thin) @async () -> () {
apply [caller_isolation=nonisolated] [callee_isolation=global_actor] %transferNonSendableKlass(%value) : $@convention(thin) @async (@guaranteed NonSendableKlass) -> () // expected-warning {{transferring value of non-Sendable type 'NonSendableKlass' from nonisolated context to global actor '<null>'-isolated context; later accesses could race}}
1350
+
1351
+
unmanaged_release_value %value : $NonSendableKlass // expected-note {{access here could race}}
1352
+
destroy_value %value : $NonSendableKlass
1353
+
destroy_addr %a : $*NonSendableKlass
1354
+
dealloc_stack %a : $*NonSendableKlass
1355
+
1356
+
%9999 = tuple ()
1357
+
return %9999 : $()
1358
+
}
1359
+
1360
+
sil [ossa] @unmanaged_autorelease_test : $@convention(thin) @async () -> () {
apply [caller_isolation=nonisolated] [callee_isolation=global_actor] %transferNonSendableKlass(%value) : $@convention(thin) @async (@guaranteed NonSendableKlass) -> () // expected-warning {{transferring value of non-Sendable type 'NonSendableKlass' from nonisolated context to global actor '<null>'-isolated context; later accesses could race}}
1370
+
1371
+
unmanaged_autorelease_value %value : $NonSendableKlass // expected-note {{access here could race}}
0 commit comments