[Core] Fix "variable ‘comp’ has function type" error shown by gcc

llvm-svn: 227558
This commit is contained in:
Simon Atanasyan 2015-01-30 05:42:57 +00:00
parent 8de4f8b1b5
commit 32c20f8d7f
1 changed files with 1 additions and 1 deletions

View File

@ -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);