diff options
Diffstat (limited to 'ELF/ICF.cpp')
-rw-r--r-- | ELF/ICF.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ELF/ICF.cpp b/ELF/ICF.cpp index dcf01ea800113..3722d4e3ed2f8 100644 --- a/ELF/ICF.cpp +++ b/ELF/ICF.cpp @@ -325,7 +325,7 @@ void ICF<ELFT>::forEachClass(std::function<void(size_t, size_t)> Fn) { // Split sections into 256 shards and call Fn in parallel. size_t NumShards = 256; size_t Step = Sections.size() / NumShards; - parallelFor(0, NumShards, [&](size_t I) { + parallelForEachN(0, NumShards, [&](size_t I) { forEachClassRange(I * Step, (I + 1) * Step, Fn); }); forEachClassRange(Step * NumShards, Sections.size(), Fn); |