Revert r351051 "[clangd] Unlink VFS working dir from OS working dir."

The llvm commit r351050 broke some bots and was reverted.

llvm-svn: 351100
This commit is contained in:
Amara Emerson 2019-01-14 18:59:17 +00:00
parent 4b0694b712
commit cadf4b61f0

View File

@ -75,10 +75,9 @@ clang::clangd::RealFileSystemProvider::getFileSystem() const {
// FIXME: Try to use a similar approach in Sema instead of relying on
// propagation of the 'isVolatile' flag through all layers.
#ifdef _WIN32
return new VolatileFileSystem(
llvm::vfs::createPhysicalFileSystem().release());
return new VolatileFileSystem(llvm::vfs::getRealFileSystem());
#else
return llvm::vfs::createPhysicalFileSystem().release();
return llvm::vfs::getRealFileSystem();
#endif
}
} // namespace clangd