mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01: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. llvm-svn: 119873
This commit is contained in:
parent
9dd0f0a04d
commit
029e95d6d7
@ -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