mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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).
This commit is contained in:
@@ -2145,6 +2145,7 @@ NodePointer NodePrinter::print(NodePointer Node, bool asPrefixContext) {
|
||||
return nullptr;
|
||||
case Node::Kind::ImplFunctionConventionName:
|
||||
assert(false && "Already handled in ImplFunctionConvention");
|
||||
return nullptr;
|
||||
case Node::Kind::ImplErrorResult:
|
||||
Printer << "@error ";
|
||||
printChildren(Node, " ");
|
||||
|
||||
Reference in New Issue
Block a user