[PATCH] D54933: Fix bugs in SmallBitVector

Brad Moody via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 26 23:07:53 PST 2018


bmoody created this revision.
bmoody added a reviewer: zturner.
Herald added subscribers: llvm-commits, kristina, dexonsmith.

Fixes:

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

(The find_last/find_last_unset bugs weren't showing up in the unit tests because it wasn't using the small mode - I added a clear() to force it back to small mode for those tests)


Repository:
  rL LLVM

https://reviews.llvm.org/D54933

Files:
  include/llvm/ADT/SmallBitVector.h
  unittests/ADT/BitVectorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54933.175404.patch
Type: text/x-patch
Size: 8641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181127/bfa30db4/attachment.bin>


More information about the llvm-commits mailing list