Pārlūkot izejas kodu

Actually, this tree isn't necessarily binary.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@154762 91177308-0d34-0410-b5e6-96231b3b80d8
Benjamin Kramer 13 gadi atpakaļ
vecāks
revīzija
a9ab209752
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      lib/Rewrite/RewriteRope.cpp

+ 2 - 2
lib/Rewrite/RewriteRope.cpp

@@ -408,8 +408,8 @@ namespace {
     }
 
     ~RopePieceBTreeInterior() {
-      Children[0]->Destroy();
-      Children[1]->Destroy();
+      for (unsigned i = 0, e = getNumChildren(); i != e; ++i)
+        Children[i]->Destroy();
     }
 
     bool isFull() const { return NumChildren == 2*WidthFactor; }