diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-03-04 14:08:47 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-03-04 14:08:47 +0000 |
commit | f0236fd49009d34c814ab30348ce6278c51056a7 (patch) | |
tree | ade77b57c3da52b2d94b6e57fd6772af9b6d6e25 /llvm/lib/Support/DebugCounter.cpp | |
parent | 5038d5c3c526c61d01da15edbbcbcabcfaf1fd4f (diff) | |
download | bcm5719-llvm-f0236fd49009d34c814ab30348ce6278c51056a7.tar.gz bcm5719-llvm-f0236fd49009d34c814ab30348ce6278c51056a7.zip |
DebugCounter: Initialize skip to 0, not -1
llvm-svn: 296971
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 a74685287da..29dae8a20f0 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 |