Skip to content

Commit

Permalink
[lld] Use range-based llvm::sort
Browse files Browse the repository at this point in the history
llvm-svn: 351612
  • Loading branch information
Mandeep Singh Grang committed Jan 18, 2019
1 parent 71c7303 commit f9d76dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lld/ELF/SyntheticSections.cpp
Expand Up @@ -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.
Expand Down

0 comments on commit f9d76dc

Please sign in to comment.