[cfe-commits] r154762 - /cfe/trunk/lib/Rewrite/RewriteRope.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sun Apr 15 04:35:18 PDT 2012
Author: d0k
Date: Sun Apr 15 06:35:18 2012
New Revision: 154762
URL: http://llvm.org/viewvc/llvm-project?rev=154762&view=rev
Log:
Actually, this tree isn't necessarily binary.
Modified:
cfe/trunk/lib/Rewrite/RewriteRope.cpp
Modified: cfe/trunk/lib/Rewrite/RewriteRope.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Rewrite/RewriteRope.cpp?rev=154762&r1=154761&r2=154762&view=diff
==============================================================================
--- cfe/trunk/lib/Rewrite/RewriteRope.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteRope.cpp Sun Apr 15 06:35:18 2012
@@ -408,8 +408,8 @@
}
~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; }
More information about the cfe-commits
mailing list