From: Simon Pilgrim Date: Wed, 27 Jul 2016 16:41:56 +0000 (+0000) Subject: Fix unnecessary default switch warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f435bb6201c3018c71ec18a94e5c4045f40d8457;p=clang Fix unnecessary default switch warning git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276889 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/CodeCompleteConsumer.cpp b/lib/Sema/CodeCompleteConsumer.cpp index e4f0e397f0..769141e310 100644 --- a/lib/Sema/CodeCompleteConsumer.cpp +++ b/lib/Sema/CodeCompleteConsumer.cpp @@ -445,8 +445,8 @@ bool PrintingCodeCompleteConsumer::isResultFilteredOut(StringRef Filter, case CodeCompletionResult::RK_Pattern: { return !StringRef(Result.Pattern->getAsString()).startswith(Filter); } - default: llvm_unreachable("Unknown code completion result Kind."); } + llvm_unreachable("Unknown code completion result Kind."); } void