mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
operator== returns false when two bitvectors have different sizes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34317 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c761df18ae
commit
638417f788
@ -235,7 +235,9 @@ public:
|
||||
|
||||
// Comparison operators.
|
||||
bool operator==(const BitVector &RHS) const {
|
||||
assert(Size == RHS.Size && "Illegal operation!");
|
||||
if (Size != RHS.Size)
|
||||
return false;
|
||||
|
||||
for (unsigned i = 0; i < NumBitWords(size()); ++i)
|
||||
if (Bits[i] != RHS.Bits[i])
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user