Skip to content

Commit 0180055

Browse files
committed
TypeSystem: silence some errors identified by MSVC
Silence a few cases where MSVC complains about not all paths returning a value. Avoid adding a default case to allow for catching covered switches.
1 parent 9c80a3d commit 0180055

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Plugins/TypeSystem/Swift/SwiftASTContext.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -1265,6 +1265,7 @@ static const char *getImportFailureString(swift::serialization::Status status) {
12651265
return "The module file was built for a target newer than the current "
12661266
"target.";
12671267
}
1268+
llvm_unreachable("covered switch");
12681269
}
12691270

12701271
/// Initialize the compiler invocation with it the search paths from a
@@ -2991,6 +2992,7 @@ class SwiftDWARFImporterDelegate : public swift::DWARFImporterDelegate {
29912992
// described in DWARF.
29922993
return true;
29932994
}
2995+
llvm_unreachable("covered switch");
29942996
}
29952997

29962998
clang::Decl *GetDeclForTypeAndKind(clang::QualType qual_type,

0 commit comments

Comments
 (0)