From a6556e26ff033f492479deb2658ad744566b493c Mon Sep 17 00:00:00 2001 From: Ilya Biryukov Date: Mon, 14 May 2018 11:47:30 +0000 Subject: [PATCH] [clangd] Fix warning after fully covered enum switch. NFC. By adding llvm_unreachable. llvm-svn: 332233 --- clang-tools-extra/clangd/CodeComplete.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 2eeaf54ea1ce..db8069bb7487 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -828,6 +828,7 @@ bool allowIndex(CodeCompletionContext &CC) { case NestedNameSpecifier::Identifier: return false; } + llvm_unreachable("invalid NestedNameSpecifier kind"); } } // namespace