[llvm] r230848 - Silence variable set but not used warning, NFC.
Yaron Keren
yaron.keren at gmail.com
Sat Feb 28 05:11:25 PST 2015
Author: yrnkrn
Date: Sat Feb 28 07:11:24 2015
New Revision: 230848
URL: http://llvm.org/viewvc/llvm-project?rev=230848&view=rev
Log:
Silence variable set but not used warning, NFC.
Modified:
llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp?rev=230848&r1=230847&r2=230848&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp Sat Feb 28 07:11:24 2015
@@ -737,9 +737,10 @@ static Value *findBasePointer(Value *I,
// 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) {
More information about the llvm-commits
mailing list