r276889 - Fix unnecessary default switch warning
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 27 09:41:57 PDT 2016
Author: rksimon
Date: Wed Jul 27 11:41:56 2016
New Revision: 276889
URL: http://llvm.org/viewvc/llvm-project?rev=276889&view=rev
Log:
Fix unnecessary default switch warning
Modified:
cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
Modified: cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp?rev=276889&r1=276888&r2=276889&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp (original)
+++ cfe/trunk/lib/Sema/CodeCompleteConsumer.cpp Wed Jul 27 11:41:56 2016
@@ -445,8 +445,8 @@ bool PrintingCodeCompleteConsumer::isRes
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
More information about the cfe-commits
mailing list