projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8de4f8b
)
[Core] Fix "variable ‘comp’ has function type" error shown by gcc
author
Simon Atanasyan
<simon@atanasyan.com>
Fri, 30 Jan 2015 05:42:57 +0000
(
05:42
+0000)
committer
Simon Atanasyan
<simon@atanasyan.com>
Fri, 30 Jan 2015 05:42:57 +0000
(
05:42
+0000)
llvm-svn: 227558
lld/include/lld/Core/Parallel.h
patch
|
blob
|
history
diff --git
a/lld/include/lld/Core/Parallel.h
b/lld/include/lld/Core/Parallel.h
index
f1c2002
..
2b25e64
100644
(file)
--- 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);