[ADT] Fix bug in BitVector and SmallBitVector DenseMap hashing.
authorBrad Moody <brad.moody@oracle.com>
Sat, 18 Apr 2020 05:09:30 +0000 (00:09 -0500)
committerMichael Kruse <llvm-project@meinersbur.de>
Sat, 18 Apr 2020 05:21:08 +0000 (00:21 -0500)
commitfb42d3afad1d9f09bcb90680baa77a39ecb99140
tree50b42486f86a317fe044c5bfb8a430d24bdc1ba2
parent31a166e4cb913ff10af23b0968963d52b05a3ac5
[ADT] Fix bug in BitVector and SmallBitVector DenseMap hashing.

BitVectors and SmallBitVectors with equal contents but different
capacities were getting different hashes.

Reviewed By: aganea

Differential Revision: https://reviews.llvm.org/D77038
llvm/include/llvm/ADT/BitVector.h
llvm/include/llvm/ADT/SmallBitVector.h
llvm/unittests/ADT/BitVectorTest.cpp