]> granicus.if.org Git - clang/commitdiff
[Sema][NFC] Fix Wimplicit-fallthrough warning in getCursorKindForDecl
authorBruno Ricci <riccibrun@gmail.com>
Fri, 21 Dec 2018 17:52:13 +0000 (17:52 +0000)
committerBruno Ricci <riccibrun@gmail.com>
Fri, 21 Dec 2018 17:52:13 +0000 (17:52 +0000)
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

index f8d4e4bb0e59145cdcac350df7919939ee5e74fa..d9f007a46da5e0c52d9558f8ef93fe1006f3927b 100644 (file)
@@ -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;