return;
}
enableAllCounters();
- Counters[CounterID].Skip = CounterVal;
- Counters[CounterID].IsSet = true;
+
+ CounterInfo &Counter = Counters[CounterID];
+ Counter.Skip = CounterVal;
+ Counter.IsSet = true;
} else if (CounterPair.first.endswith("-count")) {
auto CounterName = CounterPair.first.drop_back(6);
unsigned CounterID = getCounterId(CounterName);
return;
}
enableAllCounters();
- Counters[CounterID].StopAfter = CounterVal;
- Counters[CounterID].IsSet = true;
+
+ CounterInfo &Counter = Counters[CounterID];
+ Counter.StopAfter = CounterVal;
+ Counter.IsSet = true;
} else {
errs() << "DebugCounter Error: " << CounterPair.first
<< " does not end with -skip or -count\n";