mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-04-02 21:22:44 +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
|
// 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user