@@ -52,8 +52,6 @@ public class C<R> {
52
52
// SIL: function_ref {{.*}}use{{.*}} scope [[F1G3H]]
53
53
// IR: dbg.value(metadata ptr %[[ARG_S]], metadata ![[MD_1_0:[0-9]+]]
54
54
// IR: %[[RS_PAIR:.*]] = alloca i8, i{{.*}} %
55
- // IR: dbg.declare(metadata ptr %[[RS_PAIR]], metadata ![[GRS_U:[0-9]+]],
56
- // IR: dbg.declare(metadata ptr %[[RS_PAIR]], metadata ![[GRS_T:[0-9]+]],
57
55
// IR: dbg.value(metadata ptr %[[ARG_0]], metadata ![[S:[0-9]+]]
58
56
// IR: dbg.value(metadata ptr %[[ARG_0]], metadata ![[GS_T:[0-9]+]]
59
57
// IR: dbg.value(metadata ptr %[[ARG_0]], metadata ![[GS_U:[0-9]+]]
@@ -71,6 +69,8 @@ public class C<R> {
71
69
// IR: call {{.*}}3use
72
70
#sourceLocation(file: "f.swift", line: 3)
73
71
g ( r)
72
+ // IR: dbg.value(metadata ptr %[[RS_PAIR]], metadata ![[GRS_T:[0-9]+]],
73
+ // IR: dbg.value(metadata ptr %[[RS_PAIR]], metadata ![[GRS_U:[0-9]+]],
74
74
// IR: call {{.*}}3use
75
75
#sourceLocation(file: "f.swift", line: 4)
76
76
g ( ( r, s) )
@@ -108,17 +108,17 @@ public class C<R> {
108
108
// IR-DAG: ![[S]] = !DILocalVariable(name: "s", {{.*}} type: ![[LET_TAU_1_0:[0-9]+]]
109
109
// IR-DAG: ![[LET_TAU_1_0]] = !DIDerivedType(tag: DW_TAG_const_type, baseType: ![[TAU_1_0]])
110
110
// IR-DAG: ![[GS_T]] = !DILocalVariable(name: "t", {{.*}} scope: ![[SP_GS_T:[0-9]+]], {{.*}} type: ![[LET_TAU_1_0]])
111
- // IR: ![[SP_GS_T]] = {{.*}}linkageName: "$s1A1gyyxlFqd___Ti5"
112
- // IR: ![[GS_U]] = !DILocalVariable(name: "u", {{.*}} scope: ![[SP_GS_U:[0-9]+]], {{.*}} type: ![[LET_TAU_1_0]])
113
- // IR: ![[SP_GS_U]] = {{.*}}linkageName: "$s1A1hyyxlFqd___Ti5"
111
+ // IR-DAG : ![[SP_GS_T]] = {{.*}}linkageName: "$s1A1gyyxlFqd___Ti5"
112
+ // IR-DAG : ![[GS_U]] = !DILocalVariable(name: "u", {{.*}} scope: ![[SP_GS_U:[0-9]+]], {{.*}} type: ![[LET_TAU_1_0]])
113
+ // IR-DAG : ![[SP_GS_U]] = {{.*}}linkageName: "$s1A1hyyxlFqd___Ti5"
114
114
115
115
// Debug info for this variable is removed. See the note above the call to g(r).
116
116
// ![[GR_T]] = !DILocalVariable(name: "t", {{.*}} scope: ![[SP_GR_T:[0-9]+]], {{.*}}type: ![[LET_TAU_0_0]])
117
117
// S has the same generic parameter numbering s T and U.
118
118
// ![[SP_GR_T]] = {{.*}}linkageName: "$s1A1gyyxlF"
119
119
120
- // IR: ![[GR_U]] = !DILocalVariable(name: "u", {{.*}} scope: ![[SP_GR_U:[0-9]+]], {{.*}}type: ![[LET_TAU_0_0]])
121
- // IR: ![[SP_GR_U]] = {{.*}}linkageName: "$s1A1hyyxlF"
120
+ // IR-DAG : ![[GR_U]] = !DILocalVariable(name: "u", {{.*}} scope: ![[SP_GR_U:[0-9]+]], {{.*}}type: ![[LET_TAU_0_0]])
121
+ // IR-DAG : ![[SP_GR_U]] = {{.*}}linkageName: "$s1A1hyyxlF"
122
122
// IR-DAG: ![[GI_T]] = !DILocalVariable(name: "t", {{.*}} scope: ![[SP_GI_G:[0-9]+]], {{.*}}type: ![[LET_INT]])
123
123
// IR-DAG: ![[SP_GI_G]] = {{.*}}linkageName: "$s1A1gyyxlFSi_Tg5"
124
124
// IR-DAG: ![[GI_U]] = !DILocalVariable(name: "u", {{.*}} scope: ![[SP_GI_U:[0-9]+]], {{.*}}type: ![[LET_INT]])
0 commit comments