Allow stat += 0 without activating the stat.
authorAndrew Trick <atrick@apple.com>
Mon, 10 Oct 2011 19:48:56 +0000 (19:48 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 10 Oct 2011 19:48:56 +0000 (19:48 +0000)
commit8cc4769108272d309038a657e42b7fcbc5bd94f3
tree56c214e75802a8dc49199449975487f26f768545
parentb35e4e84727ff5ba3621b39caa622baef431ca45
Allow stat += 0 without activating the stat.

For me, this is a nice convenience. We generally want grep to match
stats output only when the event has occurred.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141574 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/Statistic.h