[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.

llvm-svn: 349933

clang/lib/Sema/SemaCodeComplete.cpp

index f8d4e4b..d9f007a 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;