aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/ADT/IntervalMap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/ADT/IntervalMap.h')
-rw-r--r--include/llvm/ADT/IntervalMap.h5
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;