Skip to content

Commit 6eb9d62

Browse files
author
git apple-llvm automerger
committed
Merge commit 'bb75a96900ad' from llvm.org/main into next
2 parents b528e74 + bb75a96 commit 6eb9d62

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/include/llvm/Support/DebugCounter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,9 @@ class DebugCounter {
162162
protected:
163163
unsigned addCounter(const std::string &Name, const std::string &Desc) {
164164
unsigned Result = RegisteredCounters.insert(Name);
165-
Counters[Result] = {};
166-
Counters[Result].Desc = Desc;
165+
auto &C = Counters[Result];
166+
C = {};
167+
C.Desc = Desc;
167168
return Result;
168169
}
169170
// Struct to store counter info.

0 commit comments

Comments
 (0)