Fix MSVC "not all control paths return a value" warning. NFCI.

llvm-svn: 357253
This commit is contained in:
Simon Pilgrim 2019-03-29 13:43:00 +00:00
parent 800b12f90a
commit 945db0bef8
1 changed files with 1 additions and 0 deletions

View File

@ -949,6 +949,7 @@ static const char *toString(OffsetEncoding OE) {
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) {