summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar/SROA.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2013-03-20 06:47:00 +0000
committerChandler Carruth <chandlerc@gmail.com>2013-03-20 06:47:00 +0000
commit30ee9c2093897a0edfe3bd23e6c754c4d88cbd88 (patch)
treef2f4f97e0801222ec1bbf9f0ad86e4a3c3627c9a /lib/Transforms/Scalar/SROA.cpp
parentf2b649da0f433511e9e0d602ee59e9f687dd846c (diff)
downloadllvm-30ee9c2093897a0edfe3bd23e6c754c4d88cbd88.tar.gz
llvm-30ee9c2093897a0edfe3bd23e6c754c4d88cbd88.tar.bz2
llvm-30ee9c2093897a0edfe3bd23e6c754c4d88cbd88.tar.xz
Move the endif to the correct line so we don't have warnings about
unused statistics variables. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177494 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SROA.cpp')
-rw-r--r--lib/Transforms/Scalar/SROA.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SROA.cpp b/lib/Transforms/Scalar/SROA.cpp
index 38c9aead4b..1a9debfc8a 100644
--- a/lib/Transforms/Scalar/SROA.cpp
+++ b/lib/Transforms/Scalar/SROA.cpp
@@ -1117,8 +1117,8 @@ AllocaPartitioning::AllocaPartitioning(const DataLayout &TD, AllocaInst &AI)
#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);
}