diff options
author | Owen Anderson <resistor@mac.com> | 2007-07-16 21:27:44 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2007-07-16 21:27:44 +0000 |
commit | 1629a1fa87f8c32d6d33173d6d6e77dc4ed1ca4f (patch) | |
tree | 48070b32b19926dd0e035ff88af193c2702fb323 /include | |
parent | bde6869ef4bf1c8b1c620c570ea340c8b2d3d269 (diff) |
Use realloc() to (potentially) resize the contents of SmallPtrSet in place.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39926 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/SmallPtrSet.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h index 9f975af07c..27cc5535c1 100644 --- a/include/llvm/ADT/SmallPtrSet.h +++ b/include/llvm/ADT/SmallPtrSet.h @@ -69,7 +69,7 @@ public: } ~SmallPtrSetImpl() { if (!isSmall()) - delete[] CurArray; + free(CurArray); } bool empty() const { return size() == 0; } |