mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
655fbb4f9b
commit
785ab18a05
@ -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
Block a user