File tree Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Expand file tree Collapse file tree 2 files changed +18
-5
lines changed Original file line number Diff line number Diff line change @@ -1368,8 +1368,6 @@ class IRGenDebugInfoImpl : public IRGenDebugInfo {
1368
1368
break ;
1369
1369
1370
1370
case TypeKind::OpaqueTypeArchetype:
1371
- // TODO
1372
- break ;
1373
1371
case TypeKind::PrimaryArchetype:
1374
1372
case TypeKind::OpenedArchetype:
1375
1373
case TypeKind::NestedArchetype: {
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -emit-ir -enable-anonymous-context-mangled-names %s | %FileCheck %s
1
+ // RUN: %target-swift-frontend -g - emit-ir -enable-anonymous-context-mangled-names %s | %FileCheck %s
2
2
3
- protocol P { }
3
+ public protocol P { }
4
4
extension Int : P { }
5
5
6
6
// CHECK: [[DEFINER_NAME:@.*]] = {{.*}}constant [{{[0-9]+}} x i8] c"$s24opaque_result_type_debug3fooQryF\00"
@@ -9,6 +9,21 @@ extension Int: P {}
9
9
10
10
// CHECK: @"\01l_type_metadata_table" = {{.*}} @"$s24opaque_result_type_debug3fooQryFQOMQ"
11
11
12
- func foo( ) -> some P {
12
+ public func foo( ) -> some P {
13
13
return 0
14
14
}
15
+
16
+ @_silgen_name ( " use " ) public func use< T: P > ( _: T )
17
+
18
+ public func bar< T: P > ( genericValue: T ) {
19
+ use ( genericValue)
20
+
21
+ let intValue = 0
22
+ use ( intValue)
23
+
24
+ let opaqueValue = foo ( )
25
+ use ( opaqueValue)
26
+ }
27
+
28
+ // CHECK: [[OPAQUE_TYPE:![0-9]+]] = !DICompositeType({{.*}} name: "$s24opaque_result_type_debug3fooQryFQOyQo_D"
29
+ // CHECK: {{![0-9]+}} = !DILocalVariable(name: "opaqueValue",{{.*}} type: [[OPAQUE_TYPE]])
You can’t perform that action at this time.
0 commit comments