mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
fix lldb test failure
This commit is contained in:
@@ -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!!!");
|
||||
|
||||
Reference in New Issue
Block a user