mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-11 21:57:55 +00:00
Fixing a -Wsign-compare warning; NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228142 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0966a4e370
commit
e818df583c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user