Fix compilation warning by removing unused variable [NFC]

clang complained with

../tools/clang/tools/extra/clangd/FS.cpp:19:12: error: unused variable 'Err' [-Werror,-Wunused-variable]
  if (auto Err = FS.makeAbsolute(PathStore))
           ^
1 error generated.

llvm-svn: 343661
This commit is contained in:
Mikael Holmen 2018-10-03 05:41:14 +00:00
parent 65ebd13f41
commit 101d9eae23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ namespace clangd {
void PreambleFileStatusCache::update(const vfs::FileSystem &FS, vfs::Status S) {
SmallString<32> PathStore(S.getName());
if (auto Err = FS.makeAbsolute(PathStore))
if (FS.makeAbsolute(PathStore))
return;
// Stores the latest status in cache as it can change in a preamble build.
StatCache.insert({PathStore, std::move(S)});