diff options
| -rw-r--r-- | lld/include/lld/Core/Parallel.h | 2 |
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); |

