mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Mangling: fix de-mangling of ‘MC’
This commit is contained in:
@@ -858,9 +858,13 @@ NodePointer Demangler::demangleMetatype() {
|
||||
case 'A':
|
||||
return createWithChild(Node::Kind::ReflectionMetadataAssocTypeDescriptor,
|
||||
popProtocolConformance());
|
||||
case 'C':
|
||||
case 'C': {
|
||||
NodePointer Ty = popNode(Node::Kind::Type);
|
||||
if (!Ty || !isNominal(Ty->getChild(0)->getKind()))
|
||||
return nullptr;
|
||||
return createWithChild(Node::Kind::ReflectionMetadataSuperclassDescriptor,
|
||||
popNode(isNominal));
|
||||
Ty->getChild(0));
|
||||
}
|
||||
default:
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user