Fixing a -Wsign-compare warning; NFC
authorAaron Ballman <aaron@aaronballman.com>
Wed, 4 Feb 2015 14:01:08 +0000 (14:01 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Wed, 4 Feb 2015 14:01:08 +0000 (14:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228142 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/StraightLineStrengthReduce.cpp

index a0e2182087142d0c11bb97372357d6ef1d522846..4edc86cceda6c8d5a9c9c03a2acbd260a68d956d 100644 (file)
@@ -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) {