diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index 2531227cb99b7..eceb297dbfc0d 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -2111,7 +2111,7 @@ template bool RelrSection::updateAllocSize(Ctx &ctx) { std::unique_ptr offsets(new uint64_t[relocs.size()]); for (auto [i, r] : llvm::enumerate(relocs)) offsets[i] = r.getOffset(); - llvm::sort(offsets.get(), offsets.get() + relocs.size()); + llvm::parallelSort(offsets.get(), offsets.get() + relocs.size()); // For each leading relocation, find following ones that can be folded // as a bitmap and fold them.