fix lldb test failure

This commit is contained in:
Marc Rasi
2019-07-16 21:42:57 -07:00
parent c319f1c13e
commit 8c993a3543
4 changed files with 16 additions and 3 deletions

View File

@@ -949,7 +949,11 @@ ASTUnitRef ASTProducer::createASTUnit(
Invocation.getLangOptions().CollectParsedToken = true;
CompIns.getSourceMgr().setFileSystem(fileSystem);
if (fileSystem != llvm::vfs::getRealFileSystem()) {
CompIns.getSourceMgr().setFileSystem(fileSystem);
Invocation.getClangImporterOptions().ForceUseSwiftVirtualFileSystem = true;
}
if (CompIns.setup(Invocation)) {
// FIXME: Report the diagnostic.
LOG_WARN_FUNC("Compilation setup failed!!!");