Skip to content

Commit 3aab6fd

Browse files
committed
[ModuleInterface] Use ForwardingDiagnosticConsumer in sub-instance.
1 parent d4e6479 commit 3aab6fd

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/Frontend/ParseableInterfaceSupport.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,9 +224,8 @@ static bool buildSwiftModuleFromSwiftInterface(
224224
<< InPath << " to " << OutPath << "\n");
225225
CompilerInstance SubInstance;
226226

227-
// FIXME: Temporary: this should forward to the outer Diags somehow.
228-
PrintingDiagnosticConsumer PDC;
229-
SubInstance.addDiagnosticConsumer(&PDC);
227+
ForwardingDiagnosticConsumer FDC(Diags);
228+
SubInstance.addDiagnosticConsumer(&FDC);
230229

231230
SubInstance.createDependencyTracker(/*TrackSystemDeps=*/false);
232231
if (SubInstance.setup(SubInvocation)) {

0 commit comments

Comments
 (0)