Prune unused local variable.

llvm-svn: 192509
This commit is contained in:
Rui Ueyama 2013-10-11 22:02:58 +00:00
parent fbdee4e3c2
commit a1490d616f
1 changed files with 1 additions and 3 deletions

View File

@ -50,10 +50,9 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
// Read inputs
ScopedTask readTask(getDefaultDomain(), "Read Args");
TaskGroup tg;
int index = 0;
std::mutex diagnosticsMutex;
for (auto &ie : inputGraph.inputElements()) {
tg.spawn([&, index] {
tg.spawn([&] {
// Writes to the same output stream is not guaranteed to be thread-safe.
// We buffer the diagnostics output to a separate string-backed output
// stream, acquire the lock, and then print it out.
@ -72,7 +71,6 @@ bool Driver::link(LinkingContext &context, raw_ostream &diagnostics) {
diagnostics << buf;
}
});
++index;
}
tg.sync();
readTask.end();