We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d3cab55 commit d29c105Copy full SHA for d29c105
llvm/utils/TableGen/SearchableTableEmitter.cpp
@@ -651,12 +651,9 @@ void SearchableTableEmitter::collectEnumEntries(
651
if (ValueField.empty()) {
652
// Copy the map entries for sorting and clear the map.
653
auto SavedEntries = Enum.Entries.takeVector();
654
- llvm::stable_sort(
655
- SavedEntries,
656
- [](const std::pair<const Record *, GenericEnum::Entry> &LHS,
657
- const std::pair<const Record *, GenericEnum::Entry> &RHS) {
658
- return LHS.second.Name < RHS.second.Name;
659
- });
+ llvm::stable_sort(SavedEntries, [](const auto &LHS, const auto &RHS) {
+ return LHS.second.Name < RHS.second.Name;
+ });
660
661
// Repopulate entries using the new sorted order.
662
for (auto [Idx, Entry] : enumerate(SavedEntries))
0 commit comments