forked from OSchip/llvm-project
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:
parent
65ebd13f41
commit
101d9eae23
|
@ -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)});
|
||||
|
|
Loading…
Reference in New Issue