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)
commite3f7be36c75ddcafb24b52c36c55c3dc17215db3
treeb80d57738343f6617c7e69f80089beb6bd3ff4b7
parentfdc054c3a393cff235a499edaa714f94f6b35d0f
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166015 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/BitVector.h
unittests/ADT/BitVectorTest.cpp