diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:15:05 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:15:05 +0000 |
| commit | 5c03f3e190559347c835382d61bb1b590e74aa4c (patch) | |
| tree | 54cc0540ba8329a60b548bb7a6156f2a5e581401 /lib/Support/DebugCounter.cpp | |
| parent | b7eb8e35e481a74962664b63dfb09483b200209a (diff) | |
Notes
Diffstat (limited to 'lib/Support/DebugCounter.cpp')
| -rw-r--r-- | lib/Support/DebugCounter.cpp | 2 |
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 { |
