diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-11-19 23:28:59 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-11-19 23:28:59 +0000 |
commit | 785ab18a054373f1a2f8d0f6f04db2d458878bd9 (patch) | |
tree | f4197f3df9a1e6faa897f4e109fe876c571cf5db | |
parent | 655fbb4f9b46ea93eddf0815eaed0020e9347416 (diff) |
Implement IntervalMap destructor.
Key and value objects may not be destructed instantly when they are erased from
the container, but they will be destructed eventually by the IntervalMap
destructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119873 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/IntervalMap.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/ADT/IntervalMap.h b/include/llvm/ADT/IntervalMap.h index 96b5161da7..56fbe93354 100644 --- a/include/llvm/ADT/IntervalMap.h +++ b/include/llvm/ADT/IntervalMap.h @@ -848,6 +848,11 @@ public: new(&rootLeaf()) RootLeaf(); } + ~IntervalMap() { + clear(); + rootLeaf().~RootLeaf(); + } + /// empty - Return true when no intervals are mapped. bool empty() const { return rootSize == 0; |