llvm.org GIT mirror llvm / 785ab18
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 Jakob Stoklund Olesen 9 years ago
1 changed file(s) with 5 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
845845 assert((uintptr_t(data) & (alignOf() - 1)) == 0 &&
846846 "Insufficient alignment");
847847 new(&rootLeaf()) RootLeaf();
848 }
849
850 ~IntervalMap() {
851 clear();
852 rootLeaf().~RootLeaf();
848853 }
849854
850855 /// empty - Return true when no intervals are mapped.