We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cf2c052 + a50c048 commit 6d5d4e6Copy full SHA for 6d5d4e6
include/swift/Remote/MetadataReader.h
@@ -2477,6 +2477,9 @@ class MetadataReader {
2477
// Use private declaration names for anonymous context references.
2478
if (parentDemangling->getKind() == Node::Kind::AnonymousContext
2479
&& nameNode->getKind() == Node::Kind::Identifier) {
2480
+ if (parentDemangling->getNumChildren() < 2)
2481
+ return nullptr;
2482
+
2483
auto privateDeclName =
2484
dem.createNode(Node::Kind::PrivateDeclName);
2485
privateDeclName->addChild(parentDemangling->getChild(0), dem);
0 commit comments