From: Simon Atanasyan Date: Fri, 30 Jan 2015 05:42:57 +0000 (+0000) Subject: [Core] Fix "variable ‘comp’ has function type" error shown by gcc X-Git-Tag: llvmorg-3.7.0-rc1~13630 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32c20f8d7f1446f0e124683078582a27d5eb4423;p=platform%2Fupstream%2Fllvm.git [Core] Fix "variable ‘comp’ has function type" error shown by gcc llvm-svn: 227558 --- diff --git a/lld/include/lld/Core/Parallel.h b/lld/include/lld/Core/Parallel.h index f1c2002..2b25e64 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);