mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
fix SourceKit injected VFS with .swiftinterface files
Use `.setFileSystem()` instead of new `setup` method.
This commit is contained in:
@@ -936,7 +936,8 @@ ASTUnitRef ASTProducer::createASTUnit(SwiftASTManager::Implementation &MgrImpl,
|
||||
|
||||
Invocation.getLangOptions().CollectParsedToken = true;
|
||||
|
||||
if (CompIns.setup(Invocation, InvokRef->Impl.Opts.FileSystem)) {
|
||||
CompIns.getSourceMgr().setFileSystem(InvokRef->Impl.Opts.FileSystem);
|
||||
if (CompIns.setup(Invocation)) {
|
||||
// FIXME: Report the diagnostic.
|
||||
LOG_WARN_FUNC("Compilation setup failed!!!");
|
||||
Error = "compilation setup failed";
|
||||
|
||||
Reference in New Issue
Block a user