mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-01 12:43:47 +00:00
[clangd] Unlink VFS working dir from OS working dir. Reland of r351051
llvm-svn: 354116
This commit is contained in:
parent
c0f964eb2f
commit
0446b40b63
@ -74,9 +74,10 @@ 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::getRealFileSystem());
|
||||
return new VolatileFileSystem(
|
||||
llvm::vfs::createPhysicalFileSystem().release());
|
||||
#else
|
||||
return llvm::vfs::getRealFileSystem();
|
||||
return llvm::vfs::createPhysicalFileSystem().release();
|
||||
#endif
|
||||
}
|
||||
} // namespace clangd
|
||||
|
Loading…
x
Reference in New Issue
Block a user