Skip to content

Commit 36b8dc2

Browse files
authored
Merge pull request #4958 from modocache/sr-2683-remove-todo
2 parents c4118b5 + 87df087 commit 36b8dc2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1210,8 +1210,12 @@ int swift::performFrontend(ArrayRef<const char *> Args,
12101210
return 1;
12111211
}
12121212

1213-
// TODO: reorder, if possible, so that diagnostics emitted during
1214-
// CompilerInvocation::parseArgs are included in the serialized file.
1213+
// Because the serialized diagnostics consumer is initialized here,
1214+
// diagnostics emitted above, within CompilerInvocation::parseArgs, are never
1215+
// serialized. This is a non-issue because, in nearly all cases, frontend
1216+
// arguments are generated by the driver, not directly by a user. The driver
1217+
// is responsible for emitting diagnostics for its own errors. See SR-2683
1218+
// for details.
12151219
std::unique_ptr<DiagnosticConsumer> SerializedConsumer;
12161220
{
12171221
const std::string &SerializedDiagnosticsPath =

0 commit comments

Comments
 (0)