summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SparseBitVector.h
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2007-09-26 00:11:59 +0000
committerDaniel Berlin <dberlin@dberlin.org>2007-09-26 00:11:59 +0000
commit9f711252f5d5ef4e05f5277ab462bf7668b53cfd (patch)
tree43b3a88190fe50e5ff0e0aa3efca7d6cd8fd675a /include/llvm/ADT/SparseBitVector.h
parent350add8f510f54f7728721d15e9c319c47dbe55b (diff)
downloadllvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.tar.gz
llvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.tar.bz2
llvm-9f711252f5d5ef4e05f5277ab462bf7668b53cfd.tar.xz
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.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SparseBitVector.h b/include/llvm/ADT/SparseBitVector.h
index fc7ea02160..a6df0acdc7 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.