Skip to content

Commit af6dc69

Browse files
authored
Merge pull request #6029 from hughbe/frontend-msvc
2 parents ed28b6e + 4779659 commit af6dc69

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ SourceFileKind CompilerInvocation::getSourceFileKind() const {
7676
case InputFileKind::IFK_LLVM_IR:
7777
llvm_unreachable("Trying to convert from unsupported InputFileKind");
7878
}
79+
80+
llvm_unreachable("Unhandled InputFileKind in switch.");
7981
}
8082

8183
// This is a separate function so that it shows up in stack traces.

lib/Frontend/DiagnosticVerifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ static std::string getDiagKindString(llvm::SourceMgr::DiagKind Kind) {
6868
case llvm::SourceMgr::DK_Warning: return "warning";
6969
case llvm::SourceMgr::DK_Note: return "note";
7070
}
71+
72+
llvm_unreachable("Unhandled DiagKind in switch.");
7173
}
7274

7375

lib/Frontend/SerializedDiagnosticConsumer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,8 @@ static clang::serialized_diags::Level getDiagnosticLevel(DiagnosticKind Kind) {
266266
case DiagnosticKind::Warning:
267267
return clang::serialized_diags::Warning;
268268
}
269+
270+
llvm_unreachable("Unhandled DiagnosticKind in switch.");
269271
}
270272

271273
void SerializedDiagnosticConsumer::emitPreamble() {

0 commit comments

Comments
 (0)