forked from OSchip/llvm-project
Fix small bug in operator== for iterators
llvm-svn: 42331
This commit is contained in:
parent
fcecf23d48
commit
08f8188adc
|
@ -441,7 +441,7 @@ class SparseBitVector {
|
|||
|
||||
bool operator==(const SparseBitVectorIterator &RHS) const {
|
||||
// If they are both at the end, ignore the rest of the fields.
|
||||
if (AtEnd == RHS.AtEnd)
|
||||
if (AtEnd && RHS.AtEnd)
|
||||
return true;
|
||||
// Otherwise they are the same if they have the same bit number and
|
||||
// bitmap.
|
||||
|
|
Loading…
Reference in New Issue