Index: include/lld/Common/Threads.h =================================================================== --- include/lld/Common/Threads.h +++ include/lld/Common/Threads.h @@ -74,7 +74,7 @@ } inline void parallelForEachN(size_t Begin, size_t End, - std::function Fn) { + llvm::function_ref Fn) { if (ThreadsEnabled) for_each_n(llvm::parallel::par, Begin, End, Fn); else