projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
66728ef
)
Add a dtor to fix leaks from all clients of BitVector.
author
Chris Lattner
<sabre@nondot.org>
Tue, 20 Mar 2007 02:10:56 +0000
(
02:10
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 20 Mar 2007 02:10:56 +0000
(
02:10
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35200
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/BitVector.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/BitVector.h
b/include/llvm/ADT/BitVector.h
index 2b0e127265d96e9b66a65cb78daa0067f2e81379..7792ab069ed41c0cba06ba54247a97aae210d5ec 100644
(file)
--- a/
include/llvm/ADT/BitVector.h
+++ b/
include/llvm/ADT/BitVector.h
@@
-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; }