[clang-tools-extra] r351100 - Revert r351051 "[clangd] Unlink VFS working dir from OS working dir."
Amara Emerson via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 14 10:59:17 PST 2019
Author: aemerson
Date: Mon Jan 14 10:59:17 2019
New Revision: 351100
URL: http://llvm.org/viewvc/llvm-project?rev=351100&view=rev
Log:
Revert r351051 "[clangd] Unlink VFS working dir from OS working dir."
The llvm commit r351050 broke some bots and was reverted.
Modified:
clang-tools-extra/trunk/clangd/FSProvider.cpp
Modified: clang-tools-extra/trunk/clangd/FSProvider.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/FSProvider.cpp?rev=351100&r1=351099&r2=351100&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/FSProvider.cpp (original)
+++ clang-tools-extra/trunk/clangd/FSProvider.cpp Mon Jan 14 10:59:17 2019
@@ -75,10 +75,9 @@ clang::clangd::RealFileSystemProvider::g
// 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
More information about the cfe-commits
mailing list