Fix small bug in operator== for iterators

llvm-svn: 42331
This commit is contained in:
Daniel Berlin 2007-09-26 00:11:59 +00:00
parent fcecf23d48
commit 08f8188adc
1 changed files with 1 additions and 1 deletions

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.