Skip to content

Commit 77527c9

Browse files
Merge pull request #62043 from augusto2112/demangle-type-in-opaque-arch-typeref
Demangle an OpaqueArchetypeTypeRef's ID as a type not as a symbol
2 parents a0c9a54 + e2febea commit 77527c9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/ABI/Mangling.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,7 @@ Types
655655
type ::= assoc-type-name 'Qz' // shortcut for 'Qyz'
656656
type ::= assoc-type-list 'QY' GENERIC-PARAM-INDEX // associated type at depth
657657
type ::= assoc-type-list 'QZ' // shortcut for 'QYz'
658+
type ::= opaque-type-decl-name bound-generic-args 'Qo' INDEX // opaque type
658659
659660
type ::= pattern-type count-type 'Qp' // pack expansion type
660661
type ::= pack-element-list 'QP' // pack type

stdlib/public/Reflection/TypeRef.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -974,7 +974,7 @@ class DemanglingForTypeRef
974974
}
975975

976976
Demangle::NodePointer visitOpaqueArchetypeTypeRef(const OpaqueArchetypeTypeRef *O) {
977-
auto decl = Dem.demangleSymbol(O->getID());
977+
auto decl = Dem.demangleType(O->getID());
978978
if (!decl)
979979
return nullptr;
980980

0 commit comments

Comments
 (0)