Skip to content

Commit 103f04e

Browse files
authored
Revert "[Importer] Wrap the VFS passed to Clang with an overlay FS instead"
1 parent d8ebecf commit 103f04e

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
@@ -1101,7 +1101,8 @@ ClangImporter::create(ASTContext &ctx,
11011101

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

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

test/SourceKit/CursorInfo/cursor_overlay.swift

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

0 commit comments

Comments
 (0)