[clang-tools-extra] r295196 - [clangd] Silence GCC warning about falling off a fully covered switch.

Benjamin Kramer via cfe-commits cfe-commits at lists.llvm.org
Wed Feb 15 08:58:45 PST 2017


Author: d0k
Date: Wed Feb 15 10:58:44 2017
New Revision: 295196

URL: http://llvm.org/viewvc/llvm-project?rev=295196&view=rev
Log:
[clangd] Silence GCC warning about falling off a fully covered switch.

Modified:
    clang-tools-extra/trunk/clangd/ASTManager.cpp

Modified: clang-tools-extra/trunk/clangd/ASTManager.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/ASTManager.cpp?rev=295196&r1=295195&r2=295196&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/ASTManager.cpp (original)
+++ clang-tools-extra/trunk/clangd/ASTManager.cpp Wed Feb 15 10:58:44 2017
@@ -51,6 +51,7 @@ static int getSeverity(DiagnosticsEngine
   case DiagnosticsEngine::Ignored:
     return 0;
   }
+  llvm_unreachable("Unknown diagnostic level!");
 }
 
 ASTManager::ASTManager(JSONOutput &Output, DocumentStore &Store)




More information about the cfe-commits mailing list