Fix a bug in the set(I,E)/reset(I,E) methods that I recently added. The boundary...
authorOwen Anderson <resistor@mac.com>
Tue, 16 Oct 2012 06:04:27 +0000 (06:04 +0000)
committerOwen Anderson <resistor@mac.com>
Tue, 16 Oct 2012 06:04:27 +0000 (06:04 +0000)
commit04b8daa9708751750b80c1ee61320e111e739e37
tree46cb5138a66ea8808ef931cd08d5c037fbf23702
parent2a3f77585fb9f2e1d6deb87d0b7325cfd95948e6
Fix a bug in the set(I,E)/reset(I,E) methods that I recently added.  The boundary condition for checking if I and E were in the same word were incorrect, and, beyond that, the mask computation was not using a wide enough constant.

llvm-svn: 166015
llvm/include/llvm/ADT/BitVector.h
llvm/unittests/ADT/BitVectorTest.cpp