Recursively delete rewrite rope nodes when tearing down the tree.

llvm-svn: 154760
This commit is contained in:
Benjamin Kramer 2012-04-15 11:09:40 +00:00
parent 67de410135
commit c2a4475caa
1 changed files with 5 additions and 0 deletions

View File

@ -407,6 +407,11 @@ namespace {
Size = LHS->size() + RHS->size();
}
~RopePieceBTreeInterior() {
Children[0]->Destroy();
Children[1]->Destroy();
}
bool isFull() const { return NumChildren == 2*WidthFactor; }
unsigned getNumChildren() const { return NumChildren; }