Skip to content

Demangle an OpaqueArchetypeTypeRef's ID as a type not as a symbol #63508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/ABI/Mangling.rst
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,7 @@ Types
type ::= assoc-type-name 'Qz' // shortcut for 'Qyz'
type ::= assoc-type-list 'QY' GENERIC-PARAM-INDEX // associated type at depth
type ::= assoc-type-list 'QZ' // shortcut for 'QYz'
type ::= opaque-type-decl-name bound-generic-args 'Qo' INDEX // opaque type

type ::= pattern-type count-type 'Qp' // pack expansion type
type ::= pack-element-list 'QP' // pack type
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/RemoteInspection/TypeRef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -974,7 +974,7 @@ class DemanglingForTypeRef
}

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

Expand Down