aboutsummaryrefslogtreecommitdiff
path: root/include/lld/Common/Threads.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Common/Threads.h')
-rw-r--r--include/lld/Common/Threads.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lld/Common/Threads.h b/include/lld/Common/Threads.h
index 854590753143..1425abd12922 100644
--- a/include/lld/Common/Threads.h
+++ b/include/lld/Common/Threads.h
@@ -74,7 +74,7 @@ template <typename R, class FuncTy> void parallelForEach(R &&Range, FuncTy Fn) {
}
inline void parallelForEachN(size_t Begin, size_t End,
- std::function<void(size_t)> Fn) {
+ llvm::function_ref<void(size_t)> Fn) {
if (ThreadsEnabled)
for_each_n(llvm::parallel::par, Begin, End, Fn);
else