projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5517aa6
)
[Sema][NFC] Fix Wimplicit-fallthrough warning in getCursorKindForDecl
author
Bruno Ricci
<riccibrun@gmail.com>
Fri, 21 Dec 2018 17:52:13 +0000
(17:52 +0000)
committer
Bruno 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
patch
|
blob
|
history
diff --git
a/clang/lib/Sema/SemaCodeComplete.cpp
b/clang/lib/Sema/SemaCodeComplete.cpp
index
f8d4e4b
..
d9f007a
100644
(file)
--- a/
clang/lib/Sema/SemaCodeComplete.cpp
+++ b/
clang/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;