forked from OSchip/llvm-project
[Core] Fix "variable ‘comp’ has function type" error shown by gcc
llvm-svn: 227558
This commit is contained in:
parent
8de4f8b1b5
commit
32c20f8d7f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue