diff options
Diffstat (limited to 'llvm/lib/Support/DebugCounter.cpp')
-rw-r--r-- | llvm/lib/Support/DebugCounter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/DebugCounter.cpp b/llvm/lib/Support/DebugCounter.cpp index a746852..29dae8a 100644 --- a/llvm/lib/Support/DebugCounter.cpp +++ b/llvm/lib/Support/DebugCounter.cpp @@ -81,7 +81,7 @@ void DebugCounter::push_back(const std::string &Val) { return; } - auto Res = Counters.insert({CounterID, {-1, -1}}); + auto Res = Counters.insert({CounterID, {0, -1}}); Res.first->second.first = CounterVal; } else if (CounterPair.first.endswith("-count")) { auto CounterName = CounterPair.first.drop_back(6); @@ -92,7 +92,7 @@ void DebugCounter::push_back(const std::string &Val) { return; } - auto Res = Counters.insert({CounterID, {-1, -1}}); + auto Res = Counters.insert({CounterID, {0, -1}}); Res.first->second.second = CounterVal; } else { errs() << "DebugCounter Error: " << CounterPair.first |