diff --git a/clang/tools/diagtool/ShowEnabledWarnings.cpp b/clang/tools/diagtool/ShowEnabledWarnings.cpp index b220003e932a..853c5c4dead1 100644 --- a/clang/tools/diagtool/ShowEnabledWarnings.cpp +++ b/clang/tools/diagtool/ShowEnabledWarnings.cpp @@ -41,6 +41,8 @@ static char getFlagForLevel(DiagnosticsEngine::Level Level) { case DiagnosticsEngine::Error: return 'E'; case DiagnosticsEngine::Fatal: return 'F'; } + + llvm_unreachable("Unknown diagnostic level"); } static CompilerInstance *createCompiler(unsigned int argc, char **argv) {