mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-26 23:32:58 +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.
|
// Try to compute the immediate basis of C.
|
||||||
unsigned NumIterations = 0;
|
unsigned NumIterations = 0;
|
||||||
// Limit the scan radius to avoid running forever.
|
// Limit the scan radius to avoid running forever.
|
||||||
static const int MaxNumIterations = 50;
|
static const unsigned MaxNumIterations = 50;
|
||||||
for (auto Basis = Candidates.rbegin();
|
for (auto Basis = Candidates.rbegin();
|
||||||
Basis != Candidates.rend() && NumIterations < MaxNumIterations;
|
Basis != Candidates.rend() && NumIterations < MaxNumIterations;
|
||||||
++Basis, ++NumIterations) {
|
++Basis, ++NumIterations) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user