mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-04 01:26:41 +00:00
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:
parent
f15590a7fb
commit
392cb33de1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user