summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-02-28 13:11:24 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-02-28 13:11:24 +0000
commit42a7adf171b44f32a155cd80fe8c22a2a41eb11b (patch)
treee263a9f99aa42a7ecff3512654183e6cc49c0267 /llvm
parentca48abc9b39ad1201d2a782d69a8597ce4c8eecc (diff)
downloadbcm5719-llvm-42a7adf171b44f32a155cd80fe8c22a2a41eb11b.tar.gz
bcm5719-llvm-42a7adf171b44f32a155cd80fe8c22a2a41eb11b.zip
Silence variable set but not used warning, NFC.
llvm-svn: 230848
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
index 4e165e24f49..15f09a5fe4a 100644
--- a/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
+++ b/llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
@@ -737,9 +737,10 @@ static Value *findBasePointer(Value *I, DefiningValueMapTy &cache,
// have reached conflict state. The current version seems too conservative.
bool progress = true;
- size_t oldSize = 0;
while (progress) {
- oldSize = states.size();
+#ifndef NDEBUG
+ size_t oldSize = states.size();
+#endif
progress = false;
// We're only changing keys in this loop, thus safe to keep iterators
for (auto Pair : states) {
OpenPOWER on IntegriCloud