From 34c325e74994ad8d5ea5e265243a82e8dad2e2fc Mon Sep 17 00:00:00 2001 From: Aaron Ballman Date: Wed, 4 Feb 2015 14:01:08 +0000 Subject: [PATCH] Fixing a -Wsign-compare warning; NFC llvm-svn: 228142 --- llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp index a0e218208714..4edc86cceda6 100644 --- a/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp @@ -161,7 +161,7 @@ void StraightLineStrengthReduce::allocateCandidateAndFindBasis(Value *B, // Try to compute the immediate basis of C. unsigned NumIterations = 0; // Limit the scan radius to avoid running forever. - static const int MaxNumIterations = 50; + static const unsigned MaxNumIterations = 50; for (auto Basis = Candidates.rbegin(); Basis != Candidates.rend() && NumIterations < MaxNumIterations; ++Basis, ++NumIterations) {