Add a dtor to fix leaks from all clients of BitVector.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35200 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-03-20 02:10:56 +00:00
parent 66728ef3d2
commit b9174dd5dc

View File

@ -86,6 +86,10 @@ public:
Bits = new BitWord[Capacity];
std::copy(RHS.Bits, &RHS.Bits[Capacity], Bits);
}
~BitVector() {
delete[] Bits;
}
/// size - Returns the number of bits in this bitvector.
unsigned size() const { return Size; }