From 54762df8f67a03fa56244e98ceafd4ec455a2d77 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Wed, 16 Jan 2019 08:13:15 +0000 Subject: [PATCH] [clangd] Fix XPC after rCTE351280 llvm-svn: 351306 --- clang-tools-extra/clangd/tool/ClangdMain.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/clang-tools-extra/clangd/tool/ClangdMain.cpp b/clang-tools-extra/clangd/tool/ClangdMain.cpp index 0a7d561ea0a4..c5b3c98ae59a 100644 --- a/clang-tools-extra/clangd/tool/ClangdMain.cpp +++ b/clang-tools-extra/clangd/tool/ClangdMain.cpp @@ -417,11 +417,11 @@ int main(int argc, char *argv[]) { std::unique_ptr 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(