Skip to content

Commit f93bc64

Browse files
authored
Merge pull request #41636 from apple/revert-41546-use-overlay-fs-instead
Revert "[Importer] Wrap the VFS passed to Clang with an overlay FS instead"
2 parents 88c79a4 + 103f04e commit f93bc64

File tree

2 files changed

+2
-55
lines changed

2 files changed

+2
-55
lines changed

lib/ClangImporter/ClangImporter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1102,7 +1102,8 @@ ClangImporter::create(ASTContext &ctx,
11021102

11031103
// Wrap Swift's FS to allow Clang to override the working directory
11041104
llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem> VFS =
1105-
new llvm::vfs::OverlayFileSystem(ctx.SourceMgr.getFileSystem());
1105+
llvm::vfs::RedirectingFileSystem::create({}, true,
1106+
*ctx.SourceMgr.getFileSystem());
11061107

11071108
// Create a new Clang compiler invocation.
11081109
{

test/SourceKit/CursorInfo/cursor_overlay.swift

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)