The intention was to fall through to Function case in LLVM_ENABLE_ASSERTIONS=Off builds.
Use #ifndef NDEBUG to fix -Wimplicit-fallthrough
llvm-svn: 345953
case index::SymbolKind::ClassMethod:
case index::SymbolKind::InstanceMethod:
case index::SymbolKind::StaticMethod:
- assert(false && "Don't expect members from index in code completion");
+#ifndef NDEBUG
+ llvm_unreachable("Don't expect members from index in code completion");
+#else
LLVM_FALLTHROUGH;
+#endif
case index::SymbolKind::Function:
// We can't group overloads together that need different #includes.
// This could break #include insertion.