Skip to content

Commit f824999

Browse files
committed
Fix more tests
1 parent 1e37ce8 commit f824999

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/SILOptimizer/bug-reducer-tester-miscompile.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ import Builtin
4444

4545
sil @putchar : $@convention(c) (Builtin.Int64) -> ()
4646

47-
sil @target_func : $@convention(thin) () -> () {
47+
sil [serialized] @target_func : $@convention(thin) () -> () {
4848
bb0:
4949
%0 = function_ref @putchar : $@convention(c) (Builtin.Int64) -> ()
5050
// "swift\n" in ASCII
@@ -64,7 +64,7 @@ bb0:
6464
return %9999 : $()
6565
}
6666

67-
sil @function_2 : $@convention(thin) () -> () {
67+
sil [serialized] @function_2 : $@convention(thin) () -> () {
6868
bb0:
6969
%0 = function_ref @target_func : $@convention(thin) () -> ()
7070
apply %0() : $@convention(thin) () -> ()
@@ -76,7 +76,7 @@ bb0:
7676
return %9999 : $()
7777
}
7878

79-
sil @function_3 : $@convention(thin) () -> () {
79+
sil [serialized] @function_3 : $@convention(thin) () -> () {
8080
bb0:
8181
// Make sure we only eliminate one.
8282
%0 = function_ref @target_func : $@convention(thin) () -> ()

test/SILOptimizer/bug-reducer-tester-runtime-crasher.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ import Builtin
4141

4242
sil @putchar : $@convention(c) (Builtin.Int64) -> ()
4343

44-
sil @target_func : $@convention(thin) () -> () {
44+
sil [serialized] @target_func : $@convention(thin) () -> () {
4545
bb0:
4646
%0 = function_ref @putchar : $@convention(c) (Builtin.Int64) -> ()
4747
// "swift\n" in ASCII
@@ -61,7 +61,7 @@ bb0:
6161
return %9999 : $()
6262
}
6363

64-
sil @function_2 : $@convention(thin) () -> () {
64+
sil [serialized] @function_2 : $@convention(thin) () -> () {
6565
bb0:
6666
%0 = function_ref @target_func : $@convention(thin) () -> ()
6767
apply %0() : $@convention(thin) () -> ()
@@ -73,7 +73,7 @@ bb0:
7373
return %9999 : $()
7474
}
7575

76-
sil @function_3 : $@convention(thin) () -> () {
76+
sil [serialized] @function_3 : $@convention(thin) () -> () {
7777
bb0:
7878
// Make sure we only eliminate one.
7979
%0 = function_ref @target_func : $@convention(thin) () -> ()

0 commit comments

Comments
 (0)