Skip to content

Commit

Permalink
[lldb] Use llvm::stable_sort in Line
Browse files Browse the repository at this point in the history
This addresses some post-commit feedback on D72909.

(cherry picked from commit 3f9b6b2)
  • Loading branch information
labath authored and fredriss committed May 5, 2020
1 parent d75068e commit ea0dc75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lldb/source/Symbol/LineTable.cpp
Expand Up @@ -24,7 +24,7 @@ LineTable::LineTable(CompileUnit *comp_unit)
LineTable::LineTable(CompileUnit *comp_unit, std::vector<LineSequence *> &sequences)
: m_comp_unit(comp_unit), m_entries() {
LineTable::Entry::LessThanBinaryPredicate less_than_bp(this);
std::sort(sequences.begin(), sequences.end(), less_than_bp);
llvm::stable_sort(sequences, less_than_bp);
for (auto *sequence : sequences) {
LineSequenceImpl *seq = reinterpret_cast<LineSequenceImpl *>(sequence);
m_entries.insert(m_entries.end(), seq->m_entries.begin(),
Expand Down

0 comments on commit ea0dc75

Please sign in to comment.