diff options
-rw-r--r-- | lld/ELF/SyntheticSections.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index f459c1b6b47..059722d2541 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -1803,7 +1803,7 @@ template <class ELFT> bool RelrSection<ELFT>::updateAllocSize() { std::vector<uint64_t> Offsets; for (const RelativeReloc &Rel : Relocs) Offsets.push_back(Rel.getOffset()); - llvm::sort(Offsets.begin(), Offsets.end()); + llvm::sort(Offsets); // For each leading relocation, find following ones that can be folded // as a bitmap and fold them. |