Skip to content

Commit 74b5a5c

Browse files
authored
Merge pull request #77623 from augusto2112/fix-spec
[DebugInfo] Fix tests to downstream "specification" attribute
2 parents 0234f7a + f679a68 commit 74b5a5c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/DebugInfo/BoundGenericStruct.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public let s = S<Int>(t: 0)
1616
// DWARF: !DICompositeType(tag: DW_TAG_structure_type,
1717
// DWARF-SAME: templateParams: ![[PARAMS:[0-9]+]]
1818
// DWARF-SAME: identifier: "$s18BoundGenericStruct1SVySiGD"
19-
// DWARF-SAME: specification_of:
19+
// DWARF-SAME: specification:
2020

2121
// DWARF: ![[PARAMS]] = !{![[INTPARAM:[0-9]+]]}
2222
// DWARF: ![[INTPARAM]] = !DITemplateTypeParameter(type: ![[INT:[0-9]+]])
@@ -42,7 +42,7 @@ public let inner = S2<Double>.Inner(t:4.2)
4242

4343
// DWARF: !DICompositeType(tag: DW_TAG_structure_type, scope: ![[SCOPE1:[0-9]+]],
4444
// DWARF-SAME: size: 64, {{.*}}, templateParams: ![[PARAMS2:[0-9]+]], identifier: "$s18BoundGenericStruct2S2V5InnerVySd_GD"
45-
// DWARF-SAME: specification_of: ![[SPECIFICATION:[0-9]+]]
45+
// DWARF-SAME: specification: ![[SPECIFICATION:[0-9]+]]
4646

4747
// DWARF: ![[SCOPE1]] = !DICompositeType(tag: DW_TAG_structure_type, name: "$s18BoundGenericStruct2S2VyxGD",
4848

test/DebugInfo/originally_defined_in.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
let i = 10
88
}
99

10-
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "A",{{.*}}identifier: "$s21originally_defined_in1AVD",{{.*}}specification_of: ![[S1:[0-9]+]]
10+
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "A",{{.*}}identifier: "$s21originally_defined_in1AVD",{{.*}}specification: ![[S1:[0-9]+]]
1111
// CHECK: [[S1]] = !DICompositeType(tag: DW_TAG_structure_type, name: "A", scope: ![[S2:[0-9]+]]
1212
// CHECK: [[S2]] = !DIModule({{.*}}name: "Other"
1313

0 commit comments

Comments
 (0)