[clang-tools-extra] r357253 - Fix MSVC "not all control paths return a value" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 29 06:43:00 PDT 2019
Author: rksimon
Date: Fri Mar 29 06:43:00 2019
New Revision: 357253
URL: http://llvm.org/viewvc/llvm-project?rev=357253&view=rev
Log:
Fix MSVC "not all control paths return a value" warning. NFCI.
Modified:
clang-tools-extra/trunk/clangd/Protocol.cpp
Modified: clang-tools-extra/trunk/clangd/Protocol.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/Protocol.cpp?rev=357253&r1=357252&r2=357253&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/Protocol.cpp (original)
+++ clang-tools-extra/trunk/clangd/Protocol.cpp Fri Mar 29 06:43:00 2019
@@ -949,6 +949,7 @@ static const char *toString(OffsetEncodi
case OffsetEncoding::UnsupportedEncoding:
return "unknown";
}
+ llvm_unreachable("Unknown clang.clangd.OffsetEncoding");
}
llvm::json::Value toJSON(const OffsetEncoding &OE) { return toString(OE); }
bool fromJSON(const llvm::json::Value &V, OffsetEncoding &OE) {
More information about the cfe-commits
mailing list