[SmallBitVector] Fix bug in find_next_unset for small types with indices >=32
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 21 Jul 2019 16:06:26 +0000 (16:06 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 21 Jul 2019 16:06:26 +0000 (16:06 +0000)
commit630be14ac646ee919f7d68572716d64ab471b0d8
treed0f5ec903ba3fe66989d32da20f21e9d2ff6224e
parentd7504a1569dfd55db2e0314b3aef87df1f527e8d
[SmallBitVector] Fix bug in find_next_unset for small types with indices >=32

We were creating a bitmask from a shift of unsigned instead of uintptr_t, meaning we couldn't create masks for indices above 31.

Noticed due to a MSVC analyzer warning.

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