mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user