summaryrefslogtreecommitdiffstats
path: root/lld/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2013-10-11 22:02:58 +0000
committerRui Ueyama <ruiu@google.com>2013-10-11 22:02:58 +0000
commita1490d616fb08179c4f67a031dd5e04c4949e63e (patch)
tree11db2e68857ced65d52cd1bc025a76450f039f28 /lld/lib/Driver/Driver.cpp
parentfbdee4e3c2c869941fd0a5d2b5ce06d67b9d0ff0 (diff)
downloadbcm5719-llvm-a1490d616fb08179c4f67a031dd5e04c4949e63e.tar.gz
bcm5719-llvm-a1490d616fb08179c4f67a031dd5e04c4949e63e.zip
Prune unused local variable.
llvm-svn: 192509
Diffstat (limited to 'lld/lib/Driver/Driver.cpp')
-rw-r--r--lld/lib/Driver/Driver.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lld/lib/Driver/Driver.cpp b/lld/lib/Driver/Driver.cpp
index 05532e8b78b..87cf9342259 100644
--- a/lld/lib/Driver/Driver.cpp
+++ b/lld/lib/Driver/Driver.cpp
@@ -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();
OpenPOWER on IntegriCloud