[clang-tools-extra] r351306 - [clangd] Fix XPC after rCTE351280
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 16 00:13:15 PST 2019
Author: maskray
Date: Wed Jan 16 00:13:15 2019
New Revision: 351306
URL: http://llvm.org/viewvc/llvm-project?rev=351306&view=rev
Log:
[clangd] Fix XPC after rCTE351280
Modified:
clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
Modified: clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp?rev=351306&r1=351305&r2=351306&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp (original)
+++ clang-tools-extra/trunk/clangd/tool/ClangdMain.cpp Wed Jan 16 00:13:15 2019
@@ -417,11 +417,11 @@ int main(int argc, char *argv[]) {
std::unique_ptr<Transport> TransportLayer;
if (getenv("CLANGD_AS_XPC_SERVICE")) {
-#ifdef CLANGD_BUILD_XPC
+#if CLANGD_BUILD_XPC
TransportLayer = newXPCTransport();
#else
- errs() << "This clangd binary wasn't built with XPC support.\n";
- return ErrorResultCode::CantRunAsXPCService;
+ llvm::errs() << "This clangd binary wasn't built with XPC support.\n";
+ return (int)ErrorResultCode::CantRunAsXPCService;
#endif
} else {
TransportLayer = newJSONTransport(
More information about the cfe-commits
mailing list