From: Craig Topper Date: Sat, 23 May 2015 08:20:33 +0000 (+0000) Subject: Fix an unused variable warning in release builds. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2b6e06c46af54cbcd4ad19d479c8deb5149ddb53;p=oota-llvm.git Fix an unused variable warning in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238094 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp index dfa1e27b657..3efea34cc17 100644 --- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -4847,6 +4847,7 @@ LSRInstance::LSRInstance(Loop *L, Pass *P) unsigned NumUsers = 0; for (const IVStrideUse &U : IU) { if (++NumUsers > MaxIVUsers) { + (void)U; DEBUG(dbgs() << "LSR skipping loop, too many IV Users in " << U << "\n"); return; }