Skip to content

Commit a4faf87

Browse files
authored
Merge pull request #6027 from hughbe/index-msvc
2 parents 667c6a9 + 3a57546 commit a4faf87

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Index/Index.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ printArtificialName(const swift::ValueDecl *VD, llvm::raw_ostream &OS) {
4949
case AccessorKind::IsMutableAddressor:
5050
return true;
5151
}
52+
53+
llvm_unreachable("Unhandled AccessorKind in switch.");
5254
}
5355

5456
static bool printDisplayName(const swift::ValueDecl *D, llvm::raw_ostream &OS) {
@@ -595,6 +597,8 @@ static SymbolSubKind getSubKindForAccessor(AccessorKind AK) {
595597
case AccessorKind::IsMaterializeForSet:
596598
llvm_unreachable("unexpected MaterializeForSet");
597599
}
600+
601+
llvm_unreachable("Unhandled AccessorKind in switch.");
598602
}
599603

600604
bool IndexSwiftASTWalker::reportPseudoAccessor(AbstractStorageDecl *D,

0 commit comments

Comments
 (0)