Fixing a -Wsign-compare warning; NFC

llvm-svn: 228142
This commit is contained in:
Aaron Ballman 2015-02-04 14:01:08 +00:00
parent 84545d7a5c
commit 34c325e749
1 changed files with 1 additions and 1 deletions

View 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) {