diff options
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Format/Format.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index 0b3627eb1c0..6bc230a33ca 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -368,7 +368,6 @@ StringRef DiagnosticIDs::getDescription(unsigned DiagID) const { static DiagnosticIDs::Level toLevel(diag::Severity SV) { switch (SV) { - default: llvm_unreachable("unexpected severity"); case diag::Severity::Ignored: return DiagnosticIDs::Ignored; case diag::Severity::Remark: @@ -380,6 +379,7 @@ static DiagnosticIDs::Level toLevel(diag::Severity SV) { case diag::Severity::Fatal: return DiagnosticIDs::Fatal; } + llvm_unreachable("unexpected severity"); } /// getDiagnosticLevel - Based on the way the client configured the diff --git a/clang/lib/Format/Format.cpp b/clang/lib/Format/Format.cpp index e1ec2517b48..913c6225ee6 100644 --- a/clang/lib/Format/Format.cpp +++ b/clang/lib/Format/Format.cpp @@ -272,7 +272,6 @@ const char *ParseErrorCategory::name() const LLVM_NOEXCEPT { std::string ParseErrorCategory::message(int EV) const { switch (static_cast<ParseError>(EV)) { - default: llvm_unreachable("unexpected parse error"); case ParseError::Success: return "Success"; case ParseError::Error: @@ -280,6 +279,7 @@ std::string ParseErrorCategory::message(int EV) const { case ParseError::Unsuitable: return "Unsuitable"; } + llvm_unreachable("unexpected parse error"); } FormatStyle getLLVMStyle() { |