Skip to content

Commit 3de9109

Browse files
Updated test to reflect removal of redundant boxing of unowned references
1 parent 04166e2 commit 3de9109

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/SILGen/unowned-class-bound-generic-parameter.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ func makeGenericClosureWithUnknownClass<T>(t: T) where T : ClassProtocol {
88
_ = { [unowned t] in _ = t }
99
}
1010

11-
// CHECK-LABEL: sil private [ossa] @$s4main34makeGenericClosureWithUnknownClass1tyx_tAA0G8ProtocolRzlFyycfU_ : $@convention(thin) <T where T : ClassProtocol> (@guaranteed <τ_0_0 where τ_0_0 : ClassProtocol> { var @sil_unowned τ_0_0 } <T>) -> () {
11+
// CHECK-LABEL: sil private [ossa] @$s4main34makeGenericClosureWithUnknownClass1tyx_tAA0G8ProtocolRzlFyycfU_ : $@convention(thin) <T where T : ClassProtocol> (@in_guaranteed @sil_unowned T) -> () {
1212

1313
func makeGenericClosureWithNativeClass1<T>(t: T) where T : BaseClass {
1414
_ = { [unowned t] in _ = t }
@@ -34,4 +34,4 @@ func f1<T: AnyObject>(t: T) {
3434

3535
func f2<T: AnyObject, U: AnyObject>(u: U, tt: Array<Wrapper<T>>) {
3636
_ = tt.map { _ in Wrapper(t: u) }
37-
}
37+
}

0 commit comments

Comments
 (0)