[ADT] Fix bugs in SmallBitVector.
authorZachary Turner <zturner@google.com>
Fri, 14 Dec 2018 18:21:20 +0000 (18:21 +0000)
committerZachary Turner <zturner@google.com>
Fri, 14 Dec 2018 18:21:20 +0000 (18:21 +0000)
commit1eb3aae24778dbb7882508f6289b7e5703841e2f
tree10c2b5d6e23d5a34a7e56128422fdba28af80647
parentcd3306c67b4245694586dd4946ef67c0c899f304
[ADT] Fix bugs in SmallBitVector.

Fixes:
  * find_last/find_last_unset - off-by-one error
  * Compound assignment ops and operator== when mixing big/small modes

Patch by Brad Moody
Differential Revision: https://reviews.llvm.org/D54933

llvm-svn: 349173
llvm/include/llvm/ADT/SmallBitVector.h
llvm/unittests/ADT/BitVectorTest.cpp