[ModuleInterface] Fix silencing errors mode in swiftinterface rebuild

Make sure we disable forwarding diagnostics from the underlying instance
when building a swiftinterface in silencing errors mode.
This commit is contained in:
Alexis Laferrière
2022-11-08 08:28:59 -08:00
parent f184504d62
commit 4a582806dc
5 changed files with 9 additions and 3 deletions

View File

@@ -330,6 +330,7 @@ bool ImplicitModuleInterfaceBuilder::buildSwiftModuleInternal(
SubError = (bool)subASTDelegate.runInSubCompilerInstance(
moduleName, interfacePath, OutPath, diagnosticLoc,
silenceInterfaceDiagnostics,
[&](SubCompilerInstanceInfo &info) {
auto EBuilder = ExplicitModuleInterfaceBuilder(
*info.Instance, rebuildDiags, sourceMgr, moduleCachePath, backupInterfaceDir,