Skip to content

Commit c82a034

Browse files
committed
Update two DI tests that I missed.
1 parent 6cc3ba2 commit c82a034

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

test/SILOptimizer/definite_init_markuninitialized_rootself.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ bb0(%0 : @owned $RootClassWithIVars, %1 : $Int):
5050
return %3 : $RootClassWithIVars
5151
}
5252

53-
// CHECK-LABEL: sil [ossa] @rootclass_test2
53+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @rootclass_test2
5454
sil [ossa] @rootclass_test2 : $@convention(method) (@owned RootClassWithIVars, Int) -> @owned RootClassWithIVars {
5555
bb0(%0 : @owned $RootClassWithIVars, %1 : $Int):
5656
%3 = mark_uninitialized [rootself] %0 : $RootClassWithIVars
@@ -74,7 +74,7 @@ bb0(%0 : @owned $RootClassWithIVars, %1 : $Int):
7474
return %3 : $RootClassWithIVars // expected-error {{return from initializer without initializing all stored properties}}
7575
}
7676

77-
// CHECK-LABEL: sil [ossa] @rootclass_test3
77+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @rootclass_test3
7878
sil [ossa] @rootclass_test3 : $@convention(method) (@owned RootClassWithIVars, Int) -> @owned RootClassWithIVars {
7979
bb0(%0 : @owned $RootClassWithIVars, %1 : $Int):
8080
%3 = mark_uninitialized [rootself] %0 : $RootClassWithIVars

test/SILOptimizer/definite_init_markuninitialized_var.sil

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import Swift
1111
sil @takes_Int_inout : $@convention(thin) (@inout Int) -> ()
1212
sil @makesInt : $@convention(thin) () -> Int
1313

14-
// CHECK-LABEL: sil [ossa] @use_before_init
14+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @use_before_init
1515
sil [ossa] @use_before_init : $@convention(thin) () -> Int {
1616
bb0:
1717
%0 = alloc_box $<τ_0_0> { var τ_0_0 } <Int>
@@ -85,7 +85,7 @@ bb0:
8585
return %5 : $Int
8686
}
8787

88-
// CHECK-LABEL: sil [ossa] @tuple_elements1
88+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @tuple_elements1
8989
sil [ossa] @tuple_elements1 : $@convention(thin) (Int) -> () {
9090
bb0(%0 : $Int):
9191
%2 = alloc_box $<τ_0_0> { var τ_0_0 } <(Int, Int)>
@@ -101,7 +101,7 @@ bb0(%0 : $Int):
101101
return %99 : $()
102102
}
103103

104-
// CHECK-LABEL: sil [ossa] @tuple_elements2
104+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @tuple_elements2
105105
sil [ossa] @tuple_elements2 : $@convention(thin) (Int) -> (Int, Int) {
106106
bb0(%0 : $Int):
107107
%2 = alloc_box $<τ_0_0> { var τ_0_0 } <(Int, Int)>
@@ -130,7 +130,7 @@ bb0(%0 : $*T, %1 : $*T):
130130
return %9 : $()
131131
}
132132

133-
// CHECK-LABEL: sil [ossa] @copy_addr2
133+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @copy_addr2
134134
sil [ossa] @copy_addr2 : $@convention(thin) <T> (@in_guaranteed T) -> @out T {
135135
bb0(%0 : $*T, %1 : $*T):
136136
%3 = alloc_box $<τ_0_0> { var τ_0_0 } <T>
@@ -145,7 +145,7 @@ bb0(%0 : $*T, %1 : $*T):
145145
sil [ossa] @takes_closure : $@convention(thin) (@owned @callee_owned () -> ()) -> ()
146146
sil [ossa] @closure0 : $@convention(thin) (@owned <τ_0_0> { var τ_0_0 } <Int>) -> ()
147147

148-
// CHECK-LABEL: sil [ossa] @closure_test
148+
// CHECK-LABEL: sil [_semantics "sil.optimizer.moveonly.diagnostic.ignore"] [ossa] @closure_test
149149
sil [ossa] @closure_test : $@convention(thin) () -> () {
150150
bb0:
151151
%1 = alloc_box $<τ_0_0> { var τ_0_0 } <Int>

0 commit comments

Comments
 (0)