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.
1 parent 218f490 commit f23c24fCopy full SHA for f23c24f
tools/SourceKit/lib/SwiftLang/SwiftLangSupport.cpp
@@ -467,7 +467,9 @@ UIdent SwiftLangSupport::getUIDForSyntaxNodeKind(SyntaxNodeKind SC) {
467
return KindObjectLiteral;
468
}
469
470
- llvm_unreachable("Unhandled SyntaxNodeKind in switch.");
+ // Default to a known kind to prevent crashing in non-asserts builds
471
+ assert(0 && "Unhandled SyntaxNodeKind in switch.");
472
+ return KindIdentifier;
473
474
475
UIdent SwiftLangSupport::getUIDForSyntaxStructureKind(
0 commit comments