[clang-tools-extra] 1ccfe47 - [clangd] Fix build when CLANGD_REMOTE is not enabled
Kirill Bobyrev via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 24 05:22:39 PDT 2020
Author: Kirill Bobyrev
Date: 2020-04-24T14:07:39+02:00
New Revision: 1ccfe475a753a93d647be78edff000b9d6667ff7
URL: https://github.com/llvm/llvm-project/commit/1ccfe475a753a93d647be78edff000b9d6667ff7
DIFF: https://github.com/llvm/llvm-project/commit/1ccfe475a753a93d647be78edff000b9d6667ff7.diff
LOG: [clangd] Fix build when CLANGD_REMOTE is not enabled
Added:
Modified:
clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp b/clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
index 101367ce7c67..8738f9cd144c 100644
--- a/clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
+++ b/clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
@@ -286,9 +286,9 @@ class Export : public Command {
void run() {
using namespace clang::clangd;
// Read input file (as specified in global option)
- auto Buffer = llvm::MemoryBuffer::getFile(IndexPath);
+ auto Buffer = llvm::MemoryBuffer::getFile(IndexLocation);
if (!Buffer) {
- llvm::errs() << llvm::formatv("Can't open {0}", IndexPath) << "\n";
+ llvm::errs() << llvm::formatv("Can't open {0}", IndexLocation) << "\n";
return;
}
More information about the cfe-commits
mailing list