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:
parent
81602be7e3
commit
305c3525af
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user