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 aa008e0 commit 4d79e98Copy full SHA for 4d79e98
llvm/lib/Support/DebugCounter.cpp
@@ -208,9 +208,10 @@ void DebugCounter::print(raw_ostream &OS) const {
208
OS << "Counters and values:\n";
209
for (auto &CounterName : CounterNames) {
210
unsigned CounterID = getCounterId(std::string(CounterName));
211
- OS << left_justify(RegisteredCounters[CounterID], 32) << ": {"
212
- << Us.Counters[CounterID].Count << ",";
213
- printChunks(OS, Us.Counters[CounterID].Chunks);
+ const CounterInfo &C = Us.Counters[CounterID];
+ OS << left_justify(RegisteredCounters[CounterID], 32) << ": {" << C.Count
+ << ",";
214
+ printChunks(OS, C.Chunks);
215
OS << "}\n";
216
}
217
0 commit comments