From 4fab4fdb1019f51883ce2fed6a614c67466b1f82 Mon Sep 17 00:00:00 2001 From: Jordan Rose Date: Fri, 1 Jun 2012 21:50:37 +0000 Subject: [PATCH] [diagtool] Appease buildbot by adding llvm_unreachable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157843 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/diagtool/ShowEnabledWarnings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/diagtool/ShowEnabledWarnings.cpp b/tools/diagtool/ShowEnabledWarnings.cpp index b220003e93..853c5c4dea 100644 --- a/tools/diagtool/ShowEnabledWarnings.cpp +++ b/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) { -- 2.40.0