@@ -15,6 +15,7 @@ sil_stage canonical
1515class C {}
1616
1717// CHECK-LABEL: @{{.*}}8MOStructVWV" =
18+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
1819// noncopyable, nontrivial deinit, pointer aligned
1920// CHECK-64-SAME: <i32 0x81_0007>
2021// CHECK-32-SAME: <i32 0x81_0003>
@@ -27,6 +28,7 @@ struct MOStruct {
2728}
2829
2930// CHECK-LABEL: @{{.*}}6MOEnumOWV" =
31+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
3032// noncopyable, enum, nontrivial deinit, pointer aligned
3133// CHECK-64-SAME: <i32 0xA1_0007>
3234// CHECK-32-SAME: <i32 0xA1_0003>
@@ -39,6 +41,7 @@ enum MOEnum {
3941}
4042
4143// CHECK-LABEL: @{{.*}}13MOComboStructVWV" =
44+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
4245// noncopyable, non-inline, nontrivial deinit, pointer aligned
4346// CHECK-64-SAME: <i32 0x83_0007>
4447// CHECK-32-SAME: <i32 0x83_0003>
@@ -50,6 +53,7 @@ struct MOComboStruct {
5053}
5154
5255// CHECK-LABEL: @{{.*}}11MOComboEnumOWV" =
56+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
5357// noncopyable, enum, nontrivial deinit, pointer aligned
5458// CHECK-64-SAME: <i32 0xA1_0007>
5559// CHECK-32-SAME: <i32 0xA1_0003>
@@ -64,6 +68,7 @@ enum MOComboEnum {
6468// common layout types.
6569
6670// CHECK-LABEL: @{{.*}}13MOEmptyStructVWV" =
71+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
6772// noncopyable, nontrivial deinit, byte aligned
6873// CHECK-SAME: <i32 0x81_0000>
6974@_moveOnly
@@ -72,6 +77,7 @@ struct MOEmptyStruct {
7277}
7378
7479// CHECK-LABEL: @{{.*}}15MOIntLikeStructVWV" =
80+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
7581// noncopyable, nontrivial deinit, pointer aligned
7682// CHECK-64-SAME: <i32 0x81_0007>
7783// CHECK-32-SAME: <i32 0x81_0003>
@@ -83,6 +89,7 @@ struct MOIntLikeStruct {
8389}
8490
8591// CHECK-LABEL: @{{.*}}26MOSingleRefcountLikeStructVWV" =
92+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
8693// noncopyable, nontrivial deinit, pointer aligned
8794// CHECK-64-SAME: <i32 0x81_0007>
8895// CHECK-32-SAME: <i32 0x81_0003>
@@ -96,13 +103,15 @@ struct MOSingleRefcountLikeStruct {
96103// Even if they don't have deinits, we shouldn't share a vwt.
97104
98105// CHECK-LABEL: @{{.*}}21MOEmptyStructNoDeinitVWV" =
106+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
99107// noncopyable, trivial deinit, byte aligned
100108// CHECK-SAME: <i32 0x80_0000>
101109@_moveOnly
102110struct MOEmptyStructNoDeinit {
103111}
104112
105113// CHECK-LABEL: @{{.*}}23MOIntLikeStructNoDeinitVWV" =
114+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
106115// noncopyable, trivial deinit, pointer aligned
107116// CHECK-64-SAME: <i32 0x80_0007>
108117// CHECK-32-SAME: <i32 0x80_0003>
@@ -112,6 +121,7 @@ struct MOIntLikeStructNoDeinit {
112121}
113122
114123// CHECK-LABEL: @{{.*}}34MOSingleRefcountLikeStructNoDeinitVWV" =
124+ // CHECK-SAME: @__swift_cannot_copy_noncopyable_type
115125// noncopyable, nontrivial deinit, pointer aligned
116126// CHECK-64-SAME: <i32 0x81_0007>
117127// CHECK-32-SAME: <i32 0x81_0003>
@@ -319,7 +329,7 @@ sil_moveonlydeinit MOGenericDeinit { @destroy_generic }
319329// CHECK-LABEL: define {{.*}} @"{{.*}}13MOComboStructVwxx"
320330// CHECK: call {{.*}} @destroy_struct(
321331// CHECK: call {{.*}} @destroy_enum(
322- // CHECK: call {{.*}} @swift_retain(
332+ // CHECK: call {{.*}} @swift_release
323333// CHECK-LABEL: define {{.*}} @"{{.*}}11MOComboEnumOwxx"
324334// CHECK: call {{.*}} @[[COMBO_ENUM_OUTLINED_DESTROY]]
325335
0 commit comments