Skip to content

Commit 3ec56ba

Browse files
authored
Merge pull request #63508 from augusto2112/5.8-demangle-type-in-opaque-arch-typeref
Demangle an OpaqueArchetypeTypeRef's ID as a type not as a symbol
2 parents 4c77f0f + 56b4d45 commit 3ec56ba

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
@@ -653,6 +653,7 @@ Types
653653
type ::= assoc-type-name 'Qz' // shortcut for 'Qyz'
654654
type ::= assoc-type-list 'QY' GENERIC-PARAM-INDEX // associated type at depth
655655
type ::= assoc-type-list 'QZ' // shortcut for 'QYz'
656+
type ::= opaque-type-decl-name bound-generic-args 'Qo' INDEX // opaque type
656657
657658
type ::= pattern-type count-type 'Qp' // pack expansion type
658659
type ::= pack-element-list 'QP' // pack type

stdlib/public/RemoteInspection/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)