summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2015-01-30 05:42:57 +0000
committerSimon Atanasyan <simon@atanasyan.com>2015-01-30 05:42:57 +0000
commit32c20f8d7f1446f0e124683078582a27d5eb4423 (patch)
tree8dfb7e1c0d119c3d52f6c37e43484d983bccc088
parent8de4f8b1b59d9a338d6cb7331f9ea04ce9de9d77 (diff)
downloadbcm5719-llvm-32c20f8d7f1446f0e124683078582a27d5eb4423.tar.gz
bcm5719-llvm-32c20f8d7f1446f0e124683078582a27d5eb4423.zip
[Core] Fix "variable ‘comp’ has function type" error shown by gcc
llvm-svn: 227558
-rw-r--r--lld/include/lld/Core/Parallel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/include/lld/Core/Parallel.h b/lld/include/lld/Core/Parallel.h
index f1c20025d90..2b25e646272 100644
--- a/lld/include/lld/Core/Parallel.h
+++ b/lld/include/lld/Core/Parallel.h
@@ -228,7 +228,7 @@ void parallel_quick_sort(RandomAccessIterator start, RandomAccessIterator end,
std::swap(*pivot, *(end - 1));
// Recurse.
- tg.spawn([=, &tg] {
+ tg.spawn([=, &comp, &tg] {
parallel_quick_sort(start, pivot, comp, tg, depth - 1);
});
parallel_quick_sort(pivot + 1, end, comp, tg, depth - 1);
OpenPOWER on IntegriCloud