File tree 3 files changed +20
-0
lines changed
3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 27
27
return %0 : $()
28
28
}
29
29
30
+ //CHECK: [releasenone] @function4
31
+ sil [releasenone] @function4 : $@convention(thin) () -> () {
32
+ bb0:
33
+ %0 = tuple ()
34
+ return %0 : $()
35
+ }
Original file line number Diff line number Diff line change 10
10
//CHECK: [readwrite] @func3
11
11
@effects ( readwrite) @_silgen_name ( " func3 " ) func func3( ) { }
12
12
13
+ //CHECK: [releasenone] @func4
14
+ @effects ( releasenone) @_silgen_name ( " func4 " ) func func4( ) { }
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class X {
35
35
36
36
sil [_semantics "arc.programtermination_point"] @exitfunc : $@convention(thin) () -> Never
37
37
sil [readnone] @pure_func : $@convention(thin) () -> ()
38
+ sil [releasenone] @releasenone_func : $@convention(thin) () -> ()
38
39
sil [readonly] @readonly_owned : $@convention(thin) (@owned X) -> ()
39
40
sil [readonly] @readonly_guaranteed : $@convention(thin) (@guaranteed X) -> ()
40
41
@@ -449,6 +450,17 @@ bb0:
449
450
return %r : $()
450
451
}
451
452
453
+ // CHECK-LABEL: sil @call_releasenone
454
+ // CHECK: <func=rw>
455
+ sil @call_releasenone : $@convention(thin) () -> () {
456
+ bb0:
457
+ %u = function_ref @releasenone_func : $@convention(thin) () -> ()
458
+ %a = apply %u() : $@convention(thin) () -> ()
459
+ %r = tuple ()
460
+ return %r : $()
461
+ }
462
+
463
+
452
464
// CHECK-LABEL: sil @call_readonly_owned
453
465
// CHECK: <func=rw+-,param0=;alloc;trap;readrc>
454
466
sil @call_readonly_owned : $@convention(thin) (@owned X) -> () {
You can’t perform that action at this time.
0 commit comments