From 600227629f8cfa321d37f42d56d2c67e42bf1ea4 Mon Sep 17 00:00:00 2001 From: Bruno Ricci Date: Fri, 21 Dec 2018 17:52:13 +0000 Subject: [PATCH] [Sema][NFC] Fix Wimplicit-fallthrough warning in getCursorKindForDecl All cases are covered so add an llvm_unreachable. NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349933 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/SemaCodeComplete.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Sema/SemaCodeComplete.cpp b/lib/Sema/SemaCodeComplete.cpp index f8d4e4bb0e..d9f007a46d 100644 --- a/lib/Sema/SemaCodeComplete.cpp +++ b/lib/Sema/SemaCodeComplete.cpp @@ -3447,6 +3447,7 @@ CXCursorKind clang::getCursorKindForDecl(const Decl *D) { case ObjCPropertyImplDecl::Synthesize: return CXCursor_ObjCSynthesizeDecl; } + llvm_unreachable("Unexpected Kind!"); case Decl::Import: return CXCursor_ModuleImportDecl; -- 2.50.1