[llvm] r177494 - Move the endif to the correct line so we don't have warnings about

Chandler Carruth chandlerc at gmail.com
Tue Mar 19 23:47:01 PDT 2013


Author: chandlerc
Date: Wed Mar 20 01:47:00 2013
New Revision: 177494

URL: http://llvm.org/viewvc/llvm-project?rev=177494&view=rev
Log:
Move the endif to the correct line so we don't have warnings about
unused statistics variables.

Modified:
    llvm/trunk/lib/Transforms/Scalar/SROA.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/SROA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SROA.cpp?rev=177494&r1=177493&r2=177494&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SROA.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SROA.cpp Wed Mar 20 01:47:00 2013
@@ -1117,8 +1117,8 @@ AllocaPartitioning::AllocaPartitioning(c
 #if !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
   for (unsigned Idx = 0, Size = Uses.size(); Idx != Size; ++Idx)
     NumUses += Uses[Idx].size();
-  NumAllocaPartitionUses += NumUses;
 #endif
+  NumAllocaPartitionUses += NumUses;
   MaxPartitionUsesPerAlloca = std::max<unsigned>(NumUses, MaxPartitionUsesPerAlloca);
 }
 





More information about the llvm-commits mailing list