diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:25:25 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-04 13:25:25 +0000 |
| commit | 40ab48c224ba19200e6ff50616a3602265226381 (patch) | |
| tree | 7a16a6b09e11c8aa51a87acf05fe6a08e2bf9af5 /contrib/llvm/lib/Support/DebugCounter.cpp | |
| parent | bbd7a9298f75b52cf65ffa6ea4cfe0958a3fc8cf (diff) | |
| parent | 5c03f3e190559347c835382d61bb1b590e74aa4c (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/lib/Support/DebugCounter.cpp')
| -rw-r--r-- | contrib/llvm/lib/Support/DebugCounter.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/llvm/lib/Support/DebugCounter.cpp b/contrib/llvm/lib/Support/DebugCounter.cpp index 5a9cecfc56d4..9c12de0776ad 100644 --- a/contrib/llvm/lib/Support/DebugCounter.cpp +++ b/contrib/llvm/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 { |
