@@ -66,15 +66,17 @@ var value: Bool { false }
66
66
// SILGEN-LABEL: sil hidden [ossa] @$s16moveonly_deinits19KlassPairWithDeinitVfD : $@convention(method) (@owned KlassPairWithDeinit) -> () {
67
67
// SILGEN: bb0([[ARG:%.*]] :
68
68
// SILGEN: [[MARK:%.*]] = mark_must_check [consumable_and_assignable] [[ARG]]
69
- // SILGEN: ([[LHS:%.*]], [[RHS:%.*]]) = destructure_struct [[MARK]]
69
+ // SILGEN: [[DD:%.*]] = drop_deinit [[MARK]]
70
+ // SILGEN: ([[LHS:%.*]], [[RHS:%.*]]) = destructure_struct [[DD]]
70
71
// SILGEN: destroy_value [[LHS]]
71
72
// SILGEN: destroy_value [[RHS]]
72
73
// SILGEN: } // end sil function '$s16moveonly_deinits19KlassPairWithDeinitVfD'
73
74
74
75
// SILGEN-LABEL: sil hidden [ossa] @$s16moveonly_deinits17IntPairWithDeinitVfD : $@convention(method) (@owned IntPairWithDeinit) -> () {
75
76
// SILGEN: bb0([[ARG:%.*]] :
76
77
// SILGEN: [[MARKED:%.*]] = mark_must_check [consumable_and_assignable] [[ARG]]
77
- // SILGEN: end_lifetime [[MARKED]]
78
+ // SILGEN: [[DD:%.*]] = drop_deinit [[MARKED]]
79
+ // SILGEN: end_lifetime [[DD]]
78
80
// SILGEN: } // end sil function '$s16moveonly_deinits17IntPairWithDeinitVfD'
79
81
80
82
////////////////////////
@@ -330,7 +332,8 @@ func consumeKlassEnumPairWithDeinit(_ x: __owned KlassEnumPairWithDeinit) { }
330
332
// SILGEN-LABEL: sil hidden [ossa] @$s16moveonly_deinits23KlassEnumPairWithDeinitOfD : $@convention(method) (@owned KlassEnumPairWithDeinit) -> () {
331
333
// SILGEN: bb0([[ARG:%.*]] :
332
334
// SILGEN: [[MARK:%.*]] = mark_must_check [consumable_and_assignable] [[ARG]]
333
- // SILGEN: switch_enum [[MARK]] : $KlassEnumPairWithDeinit, case #KlassEnumPairWithDeinit.lhs!enumelt: [[BB_LHS:bb[0-9]+]], case #KlassEnumPairWithDeinit.rhs!enumelt: [[BB_RHS:bb[0-9]+]]
335
+ // SILGEN: [[DD:%.*]] = drop_deinit [[MARK]]
336
+ // SILGEN: switch_enum [[DD]] : $KlassEnumPairWithDeinit, case #KlassEnumPairWithDeinit.lhs!enumelt: [[BB_LHS:bb[0-9]+]], case #KlassEnumPairWithDeinit.rhs!enumelt: [[BB_RHS:bb[0-9]+]]
334
337
//
335
338
// SILGEN: [[BB_LHS]]([[ARG:%.*]] :
336
339
// SILGEN-NEXT: destroy_value [[ARG]]
@@ -348,7 +351,8 @@ func consumeKlassEnumPairWithDeinit(_ x: __owned KlassEnumPairWithDeinit) { }
348
351
// SILGEN-LABEL: sil hidden [ossa] @$s16moveonly_deinits21IntEnumPairWithDeinitOfD : $@convention(method) (@owned IntEnumPairWithDeinit) -> () {
349
352
// SILGEN: bb0([[ARG:%.*]] :
350
353
// SILGEN: [[MARK:%.*]] = mark_must_check [consumable_and_assignable] [[ARG]]
351
- // SILGEN: switch_enum [[MARK]] : $IntEnumPairWithDeinit, case #IntEnumPairWithDeinit.lhs!enumelt: [[BB_LHS:bb[0-9]+]], case #IntEnumPairWithDeinit.rhs!enumelt: [[BB_RHS:bb[0-9]+]]
354
+ // SILGEN: [[DD:%.*]] = drop_deinit [[MARK]]
355
+ // SILGEN: switch_enum [[DD]] : $IntEnumPairWithDeinit, case #IntEnumPairWithDeinit.lhs!enumelt: [[BB_LHS:bb[0-9]+]], case #IntEnumPairWithDeinit.rhs!enumelt: [[BB_RHS:bb[0-9]+]]
352
356
//
353
357
// SILGEN: [[BB_LHS]]([[ARG:%.*]] :
354
358
// SILGEN-NEXT: br [[BB_CONT:bb[0-9]+]]
0 commit comments