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
// expected-warning @-1 {{passing argument of non-sendable type 'Builtin.RawPointer' from nonisolated context to global actor '<null>'-isolated context at this call site could yield a race with accesses later in this function}}
672
+
673
+
fix_lifetime %value : $NonSendableKlass
674
+
// expected-note @-1 {{access here could race}}
675
+
676
+
destroy_value %value : $NonSendableKlass
677
+
%9999 = tuple ()
678
+
return %9999 : $()
679
+
}
680
+
681
+
sil [ossa] @unchecked_bitwise_cast_test_sendable_to_nonsendable : $@convention(thin) @async () -> () {
// expected-warning @-1 {{passing argument of non-sendable type 'Builtin.RawPointer' from nonisolated context to global actor '<null>'-isolated context at this call site could yield a race with accesses later in this function}}
// expected-warning @-1 {{passing argument of non-sendable type 'Builtin.RawPointer' from nonisolated context to global actor '<null>'-isolated context at this call site could yield a race with accesses later in this function}}
696
+
// expected-note @-2 {{access here could race}}
697
+
698
+
fix_lifetime %rawPointer : $Builtin.RawPointer
699
+
// expected-note @-1 {{access here could race}}
700
+
701
+
destroy_value %value : $SendableKlass
702
+
%9999 = tuple ()
703
+
return %9999 : $()
704
+
}
705
+
706
+
sil [ossa] @unchecked_bitwise_cast_test_nonsendable_to_sendable : $@convention(thin) @async () -> () {
// expected-warning @-1 {{passing argument of non-sendable type 'NonSendableKlass' from nonisolated context to global actor '<null>'-isolated context at this call site could yield a race with accesses later in this function}}
714
+
715
+
%word = unchecked_bitwise_cast %value : $NonSendableKlass to $Builtin.Word
716
+
// expected-note @-1 {{access here could race}}
717
+
718
+
destroy_value %value : $NonSendableKlass
719
+
%9999 = tuple ()
720
+
return %9999 : $()
721
+
}
722
+
723
+
sil [ossa] @unchecked_bitwise_cast_test_sendable_to_sendable : $@convention(thin) @async () -> () {
0 commit comments