Move a couple more statistics inside '#ifndef NDEBUG'.
authorMatt Beaumont-Gay <matthewbg@google.com>
Mon, 13 May 2013 21:10:49 +0000 (21:10 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Mon, 13 May 2013 21:10:49 +0000 (21:10 +0000)
Suppresses an unused-variable warning in -Asserts builds.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181733 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/ObjCARC/ObjCARCOpts.cpp

index d2d8325d1fcf1013ceecbad2e92c3ac8eee6ff8b..bab49e75b7f37768d831ca882c4ea11c58ca68c4 100644 (file)
@@ -303,11 +303,11 @@ STATISTIC(NumRets,        "Number of return value forwarding "
                           "retain+autoreleaes eliminated");
 STATISTIC(NumRRs,         "Number of retain+release paths eliminated");
 STATISTIC(NumPeeps,       "Number of calls peephole-optimized");
+#ifndef NDEBUG
 STATISTIC(NumRetainsBeforeOpt,
           "Number of retains before optimization.");
 STATISTIC(NumReleasesBeforeOpt,
           "Number of releases before optimization.");
-#ifndef NDEBUG
 STATISTIC(NumRetainsAfterOpt,
           "Number of retains after optimization.");
 STATISTIC(NumReleasesAfterOpt,