forked from OSchip/llvm-project
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. llvm-svn: 119873
This commit is contained in:
parent
c041268c8c
commit
6ae70b2e0f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue