1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

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

llvm-svn: 35200
This commit is contained in:
Chris Lattner 2007-03-20 02:10:56 +00:00
parent 81602be7e3
commit 305c3525af

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; }