mirror of
https://github.com/apple/swift.git
synced 2026-02-27 18:26:24 +01:00
For reparenting, we rely on a default associated conformance witness accessor to build the witness table for 'Self: NewParent' at runtime. This means that when mangling the symbol for such a descriptor, we need support for there being no associated type at all; it's just tau_0_0 aka Self as the subject. This patch extends _default_ associated conformance witness accessor mangling to support a GenericTypeParamType for the subject, as the non-default accessors already quietly did have support; see `mangleAssociatedConformanceDescriptor`. It was quiet in the sense that there was no demangling support for it, nor documentation about it either. So I've brought both kinds of witness accessor manglings up-to-par, without extending the `assoc-type-name` grammar itself.