summaryrefslogtreecommitdiff
path: root/lib/Support/DebugCounter.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2018-08-04 13:15:05 +0000
committerDimitry Andric <dim@FreeBSD.org>2018-08-04 13:15:05 +0000
commit5c03f3e190559347c835382d61bb1b590e74aa4c (patch)
tree54cc0540ba8329a60b548bb7a6156f2a5e581401 /lib/Support/DebugCounter.cpp
parentb7eb8e35e481a74962664b63dfb09483b200209a (diff)
Notes
Diffstat (limited to 'lib/Support/DebugCounter.cpp')
-rw-r--r--lib/Support/DebugCounter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Support/DebugCounter.cpp b/lib/Support/DebugCounter.cpp
index 5a9cecfc56d4..9c12de0776ad 100644
--- a/lib/Support/DebugCounter.cpp
+++ b/lib/Support/DebugCounter.cpp
@@ -82,6 +82,7 @@ void DebugCounter::push_back(const std::string &Val) {
<< " is not a registered counter\n";
return;
}
+ enableAllCounters();
Counters[CounterID].Skip = CounterVal;
Counters[CounterID].IsSet = true;
} else if (CounterPair.first.endswith("-count")) {
@@ -92,6 +93,7 @@ void DebugCounter::push_back(const std::string &Val) {
<< " is not a registered counter\n";
return;
}
+ enableAllCounters();
Counters[CounterID].StopAfter = CounterVal;
Counters[CounterID].IsSet = true;
} else {