[lld] r192509 - Prune unused local variable.
Rui Ueyama
ruiu at google.com
Fri Oct 11 15:02:58 PDT 2013
Author: ruiu
Date: Fri Oct 11 17:02:58 2013
New Revision: 192509
URL: http://llvm.org/viewvc/llvm-project?rev=192509&view=rev
Log:
Prune unused local variable.
Modified:
lld/trunk/lib/Driver/Driver.cpp
Modified: lld/trunk/lib/Driver/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/Driver/Driver.cpp?rev=192509&r1=192508&r2=192509&view=diff
==============================================================================
--- lld/trunk/lib/Driver/Driver.cpp (original)
+++ lld/trunk/lib/Driver/Driver.cpp Fri Oct 11 17:02:58 2013
@@ -50,10 +50,9 @@ bool Driver::link(LinkingContext &contex
// 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 &contex
diagnostics << buf;
}
});
- ++index;
}
tg.sync();
readTask.end();
More information about the llvm-commits
mailing list