Silence variable set but not used warning, NFC.
authorYaron Keren <yaron.keren@gmail.com>
Sat, 28 Feb 2015 13:11:24 +0000 (13:11 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sat, 28 Feb 2015 13:11:24 +0000 (13:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@230848 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/RewriteStatepointsForGC.cpp

index 4e165e24f49853cad67621c16b14ad4ed18c71bf..15f09a5fe4aea76a68745bc6eb31d115255cdba0 100644 (file)
@@ -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) {