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 | 8df98c17fdd49757c113b30cf552dbd923970162 (patch) | |
tree | 43b3a88190fe50e5ff0e0aa3efca7d6cd8fd675a | |
parent | 495179a844681bf1688c95ea4f9cc0dacddb2ad8 (diff) | |
download | external_llvm-8df98c17fdd49757c113b30cf552dbd923970162.zip external_llvm-8df98c17fdd49757c113b30cf552dbd923970162.tar.gz external_llvm-8df98c17fdd49757c113b30cf552dbd923970162.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
-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. |