Skip to content

Commit 1e55118

Browse files
authored
Merge pull request swiftlang#15598 from dcci/invalidmangl-typerec
2 parents 7224ef8 + ec18f40 commit 1e55118

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/IDE/TypeReconstruction.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2168,6 +2168,7 @@ static void VisitNodeGlobal(ASTContext *ast, Demangle::NodePointer cur_node,
21682168

21692169
switch (childKind) {
21702170
case Demangle::Node::Kind::Identifier:
2171+
result._error = "invalid global node";
21712172
break;
21722173
default:
21732174
VisitNode(ast, *child_pos, result);

test/DebugInfo/Inputs/type-reconstr-names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ $S4blah4mainyyF ---> () -> ()
22
$SytD ---> ()
33
$Ss5Int32VD ---> Int32
44
$S4blah4mainyyF8PatatinoL_VMa ---> Can't resolve type of $S4blah4mainyyF8PatatinoL_VMa
5-
$Ss10CollectionP7Element ---> Collection
5+
$Ss10CollectionP7Element ---> Can't resolve type of $Ss10CollectionP7Element

0 commit comments

Comments
 (0)