Fix small bug in operator== for iterators

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42331 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Berlin 2007-09-26 00:11:59 +00:00
parent 350add8f51
commit 9f711252f5

View File

@ -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.