Rename local variable.

This commit is contained in:
David Ungar
2018-08-06 10:12:04 -07:00
parent 11c1f0f01e
commit b4d942945a

View File

@@ -1600,8 +1600,8 @@ createDispatchingDiagnosticConsumerIfNeeded(
inputsAndOutputs.forEachInputProducingSupplementaryOutput(
[&](const InputFile &input) -> bool {
if (auto subconsumer = maybeCreateConsumerForDiagnosticsFrom(input))
subconsumers.emplace_back(input.file(), std::move(subconsumer));
if (auto consumer = maybeCreateConsumerForDiagnosticsFrom(input))
subconsumers.emplace_back(input.file(), std::move(consumer));
return false;
});
// For batch mode, the compiler must swallow diagnostics pertaining to