[llvm-commits] [llvm] r42331 - /llvm/trunk/include/llvm/ADT/SparseBitVector.h
Daniel Berlin
dberlin at dberlin.org
Tue Sep 25 17:11:59 PDT 2007
Author: dannyb
Date: Tue Sep 25 19:11:59 2007
New Revision: 42331
URL: http://llvm.org/viewvc/llvm-project?rev=42331&view=rev
Log:
Fix small bug in operator== for iterators
Modified:
llvm/trunk/include/llvm/ADT/SparseBitVector.h
Modified: llvm/trunk/include/llvm/ADT/SparseBitVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SparseBitVector.h?rev=42331&r1=42330&r2=42331&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SparseBitVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SparseBitVector.h Tue Sep 25 19:11:59 2007
@@ -441,7 +441,7 @@
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.
More information about the llvm-commits
mailing list