[clangd] Fix build when CLANGD_REMOTE is not enabled
authorKirill Bobyrev <kbobyrev@google.com>
Fri, 24 Apr 2020 12:07:03 +0000 (14:07 +0200)
committerKirill Bobyrev <kbobyrev@google.com>
Fri, 24 Apr 2020 12:07:39 +0000 (14:07 +0200)
clang-tools-extra/clangd/index/dex/dexp/Dexp.cpp

index 101367c..8738f9c 100644 (file)
@@ -286,9 +286,9 @@ public:
   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;
     }