[Demangle] Fix OldDemangler DependentMemberTypeName infinite loop (#25791)

This commit is contained in:
Damian Malarczyk
2019-06-28 21:53:17 +02:00
committed by Jordan Rose
parent 6740626372
commit 9f26b99f2c
2 changed files with 3 additions and 0 deletions

View File

@@ -1426,6 +1426,7 @@ private:
// we could try to fish it out of the generic signature constraints on the
// base.
NodePointer ID = demangleIdentifier();
if (!ID) return nullptr;
assocTy = Factory.createNode(Node::Kind::DependentAssociatedTypeRef);
if (!assocTy) return nullptr;
assocTy->addChild(ID, Factory);