Author: brunoricci Date: Fri Dec 21 09:52:13 2018 New Revision: 349933 URL: http://llvm.org/viewvc/llvm-project?rev=349933&view=rev Log: [Sema][NFC] Fix Wimplicit-fallthrough warning in getCursorKindForDecl
All cases are covered so add an llvm_unreachable. NFC. Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp Modified: cfe/trunk/lib/Sema/SemaCodeComplete.cpp URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaCodeComplete.cpp?rev=349933&r1=349932&r2=349933&view=diff ============================================================================== --- cfe/trunk/lib/Sema/SemaCodeComplete.cpp (original) +++ cfe/trunk/lib/Sema/SemaCodeComplete.cpp Fri Dec 21 09:52:13 2018 @@ -3447,6 +3447,7 @@ CXCursorKind clang::getCursorKindForDecl case ObjCPropertyImplDecl::Synthesize: return CXCursor_ObjCSynthesizeDecl; } + llvm_unreachable("Unexpected Kind!"); case Decl::Import: return CXCursor_ModuleImportDecl; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits