DebugCounter: Initialize skip to 0, not -1

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@296971 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Berlin 2017-03-04 14:08:47 +00:00
parent f15590a7fb
commit 392cb33de1

View File

@ -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