summaryrefslogtreecommitdiff
path: root/source/Utility/TaskPool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Utility/TaskPool.cpp')
-rw-r--r--source/Utility/TaskPool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/Utility/TaskPool.cpp b/source/Utility/TaskPool.cpp
index d8306dc7dc8f..d33f23cd861c 100644
--- a/source/Utility/TaskPool.cpp
+++ b/source/Utility/TaskPool.cpp
@@ -75,7 +75,7 @@ void TaskPoolImpl::Worker(TaskPoolImpl *pool) {
}
void TaskMapOverInt(size_t begin, size_t end,
- std::function<void(size_t)> const &func) {
+ const llvm::function_ref<void(size_t)> &func) {
std::atomic<size_t> idx{begin};
size_t num_workers =
std::min<size_t>(end, std::thread::hardware_concurrency());