From cadf4b61f0a92a531e3cda9cc744e261b875a23f Mon Sep 17 00:00:00 2001 From: Amara Emerson Date: Mon, 14 Jan 2019 18:59:17 +0000 Subject: Revert r351051 "[clangd] Unlink VFS working dir from OS working dir." The llvm commit r351050 broke some bots and was reverted. llvm-svn: 351100 --- clang-tools-extra/clangd/FSProvider.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clang-tools-extra') diff --git a/clang-tools-extra/clangd/FSProvider.cpp b/clang-tools-extra/clangd/FSProvider.cpp index 620bd97310eb..81a1adab6b97 100644 --- a/clang-tools-extra/clangd/FSProvider.cpp +++ b/clang-tools-extra/clangd/FSProvider.cpp @@ -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 -- cgit v1.2.3-65-gdbad