You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: test/SILOptimizer/tuple-conformances.swift
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,20 @@ public func transparentCallee<T: P>(t: T.Type) {
22
22
t.protocolMethod()
23
23
}
24
24
25
+
// Make sure we don't devirtualize the call when we inline transparentCallee()
26
+
// into transparentCaller(), because we might unwrap the tuple conformance
27
+
// later.
28
+
29
+
// CHECK-LABEL: sil [transparent] @$s4main17transparentCaller5tupleyxxQp_tm_tRvzAA1PRzlF : $@convention(thin) <each T where repeat each T : P> (@thin (repeat each T).Type) -> () {
0 commit comments