fix SourceKit injected VFS with .swiftinterface files

Use `.setFileSystem()` instead of new `setup` method.
This commit is contained in:
marcrasi
2019-05-28 18:19:41 -07:00
committed by Marc Rasi
parent 840f4b90d9
commit eb8f384c01
5 changed files with 17 additions and 17 deletions

View File

@@ -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";