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 c3c424d commit eedff8bCopy full SHA for eedff8b
llvm/include/llvm/DebugInfo/GSYM/OutputAggregator.h
@@ -60,11 +60,8 @@ class OutputAggregator {
60
// then merge it in here. Note that this is *not* thread safe. It is up to
61
// the caller to ensure that this is only called from one thread at a time.
62
void Merge(const OutputAggregator &other) {
63
- for (auto &&[name, count] : other.Aggregation) {
64
- auto [it, inserted] = Aggregation.emplace(name, count);
65
- if (!inserted)
66
- it->second += count;
67
- }
+ for (auto &&[name, count] : other.Aggregation)
+ Aggregation[name] += count;
68
}
69
};
70
0 commit comments