[clangd] Unlink VFS working dir from OS working dir. Reland of r351051

llvm-svn: 354116
This commit is contained in:
Sam McCall 2019-02-15 11:04:25 +00:00
parent c0f964eb2f
commit 0446b40b63

View File

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