Skip to content

Commit b2535b2

Browse files
committed
Demangling: avoid implicit fallthrough
For non-asserts builds, this would produce the wrong result. Simply return from the function instead (as we do in the case where we expect this to be handled).
1 parent fe5be63 commit b2535b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Demangling/NodePrinter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2145,6 +2145,7 @@ NodePointer NodePrinter::print(NodePointer Node, bool asPrefixContext) {
21452145
return nullptr;
21462146
case Node::Kind::ImplFunctionConventionName:
21472147
assert(false && "Already handled in ImplFunctionConvention");
2148+
return nullptr;
21482149
case Node::Kind::ImplErrorResult:
21492150
Printer << "@error ";
21502151
printChildren(Node, " ");

0 commit comments

Comments
 (0)