Skip to content

Commit 6a1ff02

Browse files
committed
stdlib: a small fix in _typeByName
The demangling tree was not correct and this did’t work with the old re-mangler.
1 parent 977df36 commit 6a1ff02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/runtime/MetadataLookup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ _classByName(const llvm::StringRef typeName) {
203203
NodePointer ClassNd = NodeFactory::create(Node::Kind::Class);
204204
NodePointer ModuleNd = NodeFactory::create(Node::Kind::Module,
205205
typeName.substr(0, DotPos));
206-
NodePointer NameNd = NodeFactory::create(Node::Kind::Module,
206+
NodePointer NameNd = NodeFactory::create(Node::Kind::Identifier,
207207
typeName.substr(DotPos + 1));
208208
ClassNd->addChildren(ModuleNd, NameNd);
209209

0 commit comments

Comments
 (0)