Skip to content

Commit 688a4ee

Browse files
committed
Revert use of auto in comparator
1 parent d29c105 commit 688a4ee

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/utils/TableGen/SearchableTableEmitter.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,9 @@ void SearchableTableEmitter::collectEnumEntries(
651651
if (ValueField.empty()) {
652652
// Copy the map entries for sorting and clear the map.
653653
auto SavedEntries = Enum.Entries.takeVector();
654-
llvm::stable_sort(SavedEntries, [](const auto &LHS, const auto &RHS) {
654+
using MapVectorEntryTy = std::pair<const Record *, GenericEnum::Entry>;
655+
llvm::stable_sort(SavedEntries, [](const MapVectorEntryTy &LHS,
656+
const MapVectorEntryTy &RHS) {
655657
return LHS.second.Name < RHS.second.Name;
656658
});
657659

0 commit comments

Comments
 (0)