Add a BitVector::reset(BitVector&) method.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 29 Jan 2012 01:29:22 +0000 (01:29 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Sun, 29 Jan 2012 01:29:22 +0000 (01:29 +0000)
commit19de016955f744cf2466fadcd28e9bf8847dd260
tree3da52c6bff3b0bf703adbc2aa870769098f64525
parent5fef01db01592903d3a22701b598fb6a69265c53
Add a BitVector::reset(BitVector&) method.

The alternative LHS &= ~RHS is way too slow because it creates a
temporary that calls malloc/free.

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