From 42a7adf171b44f32a155cd80fe8c22a2a41eb11b Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Sat, 28 Feb 2015 13:11:24 +0000 Subject: Silence variable set but not used warning, NFC. llvm-svn: 230848 --- llvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Transforms') 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) { -- cgit v1.2.3