From: Aaron Ballman Date: Wed, 4 Feb 2015 14:01:08 +0000 (+0000) Subject: Fixing a -Wsign-compare warning; NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e818df583c03a6e02bab9db670602ff5d02ee61a;p=oota-llvm.git Fixing a -Wsign-compare warning; NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228142 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp b/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp index a0e21820871..4edc86cceda 100644 --- a/lib/Transforms/Scalar/StraightLineStrengthReduce.cpp +++ b/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) {