diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2007-09-26 00:11:59 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2007-09-26 00:11:59 +0000 |
commit | 9f711252f5d5ef4e05f5277ab462bf7668b53cfd (patch) | |
tree | 43b3a88190fe50e5ff0e0aa3efca7d6cd8fd675a /include/llvm/ADT/SparseBitVector.h | |
parent | 350add8f510f54f7728721d15e9c319c47dbe55b (diff) | |
download | external_llvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.zip external_llvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.tar.gz external_llvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.tar.bz2 |
Fix small bug in operator== for iterators
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42331 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/SparseBitVector.h')
-rw-r--r-- | include/llvm/ADT/SparseBitVector.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h index fc7ea02..a6df0ac 100644 --- a/include/llvm/ADT/SparseBitVector.h +++ b/include/llvm/ADT/SparseBitVector.h @@ -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. |