summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index/IndexingContext.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-02-15 00:36:52 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-02-15 00:36:52 +0000
commit9b0ac3345716b686ad09b613b627d4f97c87d58f (patch)
tree4c193c6780d2f190148546e94931841b4b5c7ed3 /clang/lib/Index/IndexingContext.cpp
parent768eb4aa42160144c6026a1ed6f34934bf91d720 (diff)
downloadbcm5719-llvm-9b0ac3345716b686ad09b613b627d4f97c87d58f.tar.gz
bcm5719-llvm-9b0ac3345716b686ad09b613b627d4f97c87d58f.zip
silence -Wreturn-type warnings
These codepaths would generate warnings with GCC on linux even though the switch was covered. Add llvm_unreachable markers to indicate that the switch should be covered. NFC. llvm-svn: 260865
Diffstat (limited to 'clang/lib/Index/IndexingContext.cpp')
-rw-r--r--clang/lib/Index/IndexingContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Index/IndexingContext.cpp b/clang/lib/Index/IndexingContext.cpp
index 91fbbfb2684..9ac22f85e1d 100644
--- a/clang/lib/Index/IndexingContext.cpp
+++ b/clang/lib/Index/IndexingContext.cpp
@@ -135,6 +135,7 @@ bool IndexingContext::isTemplateImplicitInstantiation(const Decl *D) {
case TSK_ExplicitInstantiationDefinition:
return true;
}
+ llvm_unreachable("invalid TemplateSpecializationKind");
}
bool IndexingContext::shouldIgnoreIfImplicit(const Decl *D) {
OpenPOWER on IntegriCloud