@@ -16,38 +16,31 @@ public struct S: Hashable, Sendable, MyProtocol, MyProtocol2 {}
1616extension Int : MyProtocol , MyProtocol2 { }
1717
1818public let metatype1 = Int . self
19- // SIL: sil_global [let] @$s4test9metatype1Simvp : $@thin Int.Type = {
20- // SIL-NEXT: %initval = metatype $@thin Int.Type
21- // SIL-NEXT: }
19+ // SIL: sil_global [let] @$s4test9metatype1Simvp : $@thin Int.Type
20+ // SIL-EMPTY:
2221public let metatype2 = S . self
2322// SIL: sil_global [let] @$s4test9metatype2AA1SVmvp : $@thin S.Type = {
2423// SIL-NEXT: %initval = metatype $@thin S.Type
2524// SIL-NEXT: }
2625public let metatype3 : Any . Type = Int . self
27- // SIL: sil_global [let] @$s4test9metatype3ypXpvp : $@thick any Any.Type = {
28- // SIL-NEXT: %0 = metatype $@thick Int.Type // user: %1
29- // SIL-NEXT: %initval = init_existential_metatype %0, $@thick any Any.Type
30- // SIL-NEXT: }
26+ // SIL: sil_global [let] @$s4test9metatype3ypXpvp : $@thick any Any.Type
27+ // SIL-EMPTY:
3128public let metatype4 : Any . Type = S . self
3229// SIL: sil_global [let] @$s4test9metatype4ypXpvp : $@thick any Any.Type = {
3330// SIL-NEXT: %0 = metatype $@thick S.Type // user: %1
3431// SIL-NEXT: %initval = init_existential_metatype %0, $@thick any Any.Type
3532// SIL-NEXT: }
3633public let metatype5 : any MyProtocol . Type = Int . self
37- // SIL: sil_global [let] @$s4test9metatype5AA10MyProtocol_pXpvp : $@thick any MyProtocol.Type = {
38- // SIL-NEXT: %0 = metatype $@thick Int.Type // user: %1
39- // SIL-NEXT: %initval = init_existential_metatype %0, $@thick any MyProtocol.Type
40- // SIL-NEXT: }
34+ // SIL: sil_global [let] @$s4test9metatype5AA10MyProtocol_pXpvp : $@thick any MyProtocol.Type
35+ // SIL-EMPTY:
4136public let metatype6 : any MyProtocol . Type = S . self
4237// SIL: sil_global [let] @$s4test9metatype6AA10MyProtocol_pXpvp : $@thick any MyProtocol.Type = {
4338// SIL-NEXT: %0 = metatype $@thick S.Type // user: %1
4439// SIL-NEXT: %initval = init_existential_metatype %0, $@thick any MyProtocol.Type
4540// SIL-NEXT: }
4641public let metatype7 : any ( MyProtocol & MyProtocol2 ) . Type = Int . self
47- // SIL: sil_global [let] @$s4test9metatype7AA10MyProtocol_AA0C9Protocol2pXpvp : $@thick any (MyProtocol & MyProtocol2).Type = {
48- // SIL-NEXT: %0 = metatype $@thick Int.Type // user: %1
49- // SIL-NEXT: %initval = init_existential_metatype %0, $@thick any (MyProtocol & MyProtocol2).Type
50- // SIL-NEXT: }
42+ // SIL: sil_global [let] @$s4test9metatype7AA10MyProtocol_AA0C9Protocol2pXpvp : $@thick any (MyProtocol & MyProtocol2).Type
43+ // SIL-EMPTY:
5144public let metatype8 : any ( MyProtocol & MyProtocol2 ) . Type = S . self
5245// SIL: sil_global [let] @$s4test9metatype8AA10MyProtocol_AA0C9Protocol2pXpvp : $@thick any (MyProtocol & MyProtocol2).Type = {
5346// SIL-NEXT: %0 = metatype $@thick S.Type // user: %1
@@ -100,9 +93,6 @@ public var metatype22: [Any.Type] = [S.self]
10093@main
10194struct Main { static func main( ) { } }
10295
103- // IR: @"$s4test9metatype3ypXpvp" = {{.*}}constant ptr @"$sSiN"
10496// IR: @"$s4test9metatype4ypXpvp" = {{.*}}constant ptr getelementptr inbounds{{.*}} ({{.*}}, ptr @"$s4test1SVMf", {{.*}})
105- // IR: @"$s4test9metatype5AA10MyProtocol_pXpvp" = {{.*}}constant <{ ptr, ptr }> <{ ptr @"$sSiN", ptr @"$sSi4test10MyProtocolAAWP" }>
10697// IR: @"$s4test9metatype6AA10MyProtocol_pXpvp" = {{.*}}constant <{ ptr, ptr }> <{ ptr getelementptr inbounds{{.*}} ({{.*}}, ptr @"$s4test1SVMf", {{.*}}), ptr @"$s4test1SVAA10MyProtocolAAWP" }>
107- // IR: @"$s4test9metatype7AA10MyProtocol_AA0C9Protocol2pXpvp" = {{.*}}constant <{ ptr, ptr, ptr }> <{ ptr @"$sSiN", ptr @"$sSi4test10MyProtocolAAWP", ptr @"$sSi4test11MyProtocol2AAWP" }>
10898// IR: @"$s4test9metatype8AA10MyProtocol_AA0C9Protocol2pXpvp" = {{.*}}constant <{ ptr, ptr, ptr }> <{ ptr getelementptr inbounds{{.*}} ({{.*}}, ptr @"$s4test1SVMf", {{.*}}), ptr @"$s4test1SVAA10MyProtocolAAWP", ptr @"$s4test1SVAA11MyProtocol2AAWP" }>
0 commit comments