Skip to content

Commit 21a1702

Browse files
author
git apple-llvm automerger
committed
Merge commit 'a013387f73ce' from llvm.org/main into next
2 parents 6ac9faa + a013387 commit 21a1702

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/include/llvm/DebugInfo/DWARF/DWARFVerifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct AggregationData {
3737

3838
class OutputCategoryAggregator {
3939
private:
40-
std::map<std::string, AggregationData> Aggregation;
40+
std::map<std::string, AggregationData, std::less<>> Aggregation;
4141
bool IncludeDetail;
4242

4343
public:

llvm/lib/DebugInfo/DWARF/DWARFVerifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2194,7 +2194,7 @@ void OutputCategoryAggregator::EnumerateResults(
21942194
}
21952195
void OutputCategoryAggregator::EnumerateDetailedResultsFor(
21962196
StringRef category, std::function<void(StringRef, unsigned)> handleCounts) {
2197-
const auto Agg = Aggregation.find(std::string(category));
2197+
const auto Agg = Aggregation.find(category);
21982198
if (Agg != Aggregation.end()) {
21992199
for (const auto &[name, aggData] : Agg->second.DetailedCounts) {
22002200
handleCounts(name, aggData);

0 commit comments

Comments
 (0)