diff --git a/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp b/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp --- a/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp +++ b/clang-tools-extra/clangd/index/remote/monitor/Monitor.cpp @@ -67,8 +67,8 @@ google::protobuf::util::MessageToJsonString(Response, &Output, Options); if (!JsonStatus.ok()) { clang::clangd::elog("Can not convert response ({0}) to JSON ({1}): {2}\n", - Response.DebugString(), JsonStatus.error_code(), - JsonStatus.error_message().as_string()); + Response.DebugString(), static_cast(JsonStatus.code()), + JsonStatus.message().as_string()); return -1; } llvm::outs() << Output;