This commit is contained in:
David Ungar
2018-08-02 21:15:21 -07:00
parent 67c8d9c357
commit dc952441a0
4 changed files with 66 additions and 43 deletions

View File

@@ -1600,10 +1600,11 @@ createDispatchingDiagnosticConsumerIfNeeded(
inputsAndOutputs.forEachInputProducingSupplementaryOutput(
[&](const InputFile &input) -> bool {
if (auto subconsumer = maybeCreateSingleConsumer(input))
subconsumers.emplace_back(FileSpecificDiagnosticConsumer::Subconsumer(input.file(), std::move(subconsumer)));
return false;
});
if (auto subconsumer = maybeCreateSingleConsumer(input))
subconsumers.emplace_back(FileSpecificDiagnosticConsumer::Subconsumer(
input.file(), std::move(subconsumer)));
return false;
});
// For batch mode, the compiler must swallow diagnostics pertaining to
// non-primary files in order to avoid Xcode showing the same diagnostic
// multiple times. So, create a diagnostic "eater" for those non-primary