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 1bb72f0 commit bb75a96Copy full SHA for bb75a96
llvm/include/llvm/Support/DebugCounter.h
@@ -162,8 +162,9 @@ class DebugCounter {
162
protected:
163
unsigned addCounter(const std::string &Name, const std::string &Desc) {
164
unsigned Result = RegisteredCounters.insert(Name);
165
- Counters[Result] = {};
166
- Counters[Result].Desc = Desc;
+ auto &C = Counters[Result];
+ C = {};
167
+ C.Desc = Desc;
168
return Result;
169
}
170
// Struct to store counter info.
0 commit comments