@@ -169,7 +169,7 @@ void Compiler::optAddCopies()
169
169
bool isDominatedByFirstBB = false ;
170
170
171
171
BlockSetOps::Iter iter (this , varDsc->lvRefBlks );
172
- for (int blkNum = iter.NextElem (); blkNum != - 1 ; blkNum = iter.NextElem ())
172
+ for (int blkNum = iter.NextElem (); blkNum != BlockSetOps::Iter::Done ; blkNum = iter.NextElem ())
173
173
{
174
174
/* Find the block 'blkNum' */
175
175
BasicBlock* block = fgFirstBB;
@@ -322,7 +322,7 @@ void Compiler::optAddCopies()
322
322
/* We have already calculated paramImportantUseDom above. */
323
323
324
324
BlockSetOps::Iter iter (this , paramImportantUseDom);
325
- for (int blkNum = iter.NextElem (); blkNum != - 1 ; blkNum = iter.NextElem ())
325
+ for (int blkNum = iter.NextElem (); blkNum != BlockSetOps::Iter::Done ; blkNum = iter.NextElem ())
326
326
{
327
327
/* Advance block to point to 'blkNum' */
328
328
/* This assumes that the iterator returns block number is increasing lexical order. */
@@ -2852,7 +2852,7 @@ GenTreePtr Compiler::optAssertionProp_LclVar(ASSERT_VALARG_TP assertions, const
2852
2852
}
2853
2853
2854
2854
BitVecOps::Iter iter (apTraits, assertions);
2855
- for (int i = iter.NextElem (); i != - 1 ; i = iter.NextElem ())
2855
+ for (int i = iter.NextElem (); i != BitVecOps::Iter::Done ; i = iter.NextElem ())
2856
2856
{
2857
2857
AssertionIndex index = GetAssertionIndex (i);
2858
2858
if (index > optAssertionCount)
@@ -2971,7 +2971,7 @@ AssertionIndex Compiler::optGlobalAssertionIsEqualOrNotEqual(ASSERT_VALARG_TP as
2971
2971
return NO_ASSERTION_INDEX;
2972
2972
}
2973
2973
BitVecOps::Iter iter (apTraits, assertions);
2974
- for (int i = iter.NextElem (); i != - 1 ; i = iter.NextElem ())
2974
+ for (int i = iter.NextElem (); i != BitVecOps::Iter::Done ; i = iter.NextElem ())
2975
2975
{
2976
2976
AssertionIndex index = GetAssertionIndex (i);
2977
2977
if (index > optAssertionCount)
@@ -3531,7 +3531,7 @@ AssertionIndex Compiler::optAssertionIsNonNullInternal(GenTreePtr op, ASSERT_VAL
3531
3531
3532
3532
// Check each assertion to find if we have a vn == or != null assertion.
3533
3533
BitVecOps::Iter iter (apTraits, assertions);
3534
- for (int i = iter.NextElem (); i != - 1 ; i = iter.NextElem ())
3534
+ for (int i = iter.NextElem (); i != BitVecOps::Iter::Done ; i = iter.NextElem ())
3535
3535
{
3536
3536
AssertionIndex index = GetAssertionIndex (i);
3537
3537
if (index > optAssertionCount)
@@ -3704,7 +3704,7 @@ GenTreePtr Compiler::optAssertionProp_BndsChk(ASSERT_VALARG_TP assertions, const
3704
3704
#endif // FEATURE_ENABLE_NO_RANGE_CHECKS
3705
3705
3706
3706
BitVecOps::Iter iter (apTraits, assertions);
3707
- for (int i = iter.NextElem (); i != - 1 ; i = iter.NextElem ())
3707
+ for (int i = iter.NextElem (); i != BitVecOps::Iter::Done ; i = iter.NextElem ())
3708
3708
{
3709
3709
AssertionIndex index = GetAssertionIndex (i);
3710
3710
if (index > optAssertionCount)
@@ -3956,7 +3956,7 @@ void Compiler::optImpliedAssertions(AssertionIndex assertionIndex, ASSERT_TP& ac
3956
3956
3957
3957
// Check each assertion in chkAssertions to see if it can be applied to curAssertion
3958
3958
BitVecOps::Iter chkIter (apTraits, chkAssertions);
3959
- for (int i = chkIter.NextElem (); i != - 1 ; i = chkIter.NextElem ())
3959
+ for (int i = chkIter.NextElem (); i != BitVecOps::Iter::Done ; i = chkIter.NextElem ())
3960
3960
{
3961
3961
AssertionIndex chkIndex = GetAssertionIndex (i);
3962
3962
if (chkIndex > optAssertionCount)
@@ -4004,7 +4004,7 @@ void Compiler::optImpliedByTypeOfAssertions(ASSERT_TP& activeAssertions)
4004
4004
4005
4005
// Check each assertion in activeAssertions to see if it can be applied to constAssertion
4006
4006
BitVecOps::Iter chkIter (apTraits, activeAssertions);
4007
- for (int i = chkIter.NextElem (); i != - 1 ; i = chkIter.NextElem ())
4007
+ for (int i = chkIter.NextElem (); i != BitVecOps::Iter::Done ; i = chkIter.NextElem ())
4008
4008
{
4009
4009
AssertionIndex chkIndex = GetAssertionIndex (i);
4010
4010
if (chkIndex > optAssertionCount)
@@ -4100,7 +4100,7 @@ void Compiler::optImpliedByConstAssertion(AssertionDsc* constAssertion, ASSERT_T
4100
4100
4101
4101
// Check each assertion in chkAssertions to see if it can be applied to constAssertion
4102
4102
BitVecOps::Iter chkIter (apTraits, chkAssertions);
4103
- for (int i = chkIter.NextElem (); i != - 1 ; i = chkIter.NextElem ())
4103
+ for (int i = chkIter.NextElem (); i != BitVecOps::Iter::Done ; i = chkIter.NextElem ())
4104
4104
{
4105
4105
AssertionIndex chkIndex = GetAssertionIndex (i);
4106
4106
if (chkIndex > optAssertionCount)
0 commit comments