[cfe-commits] r50839 - /cfe/trunk/lib/Rewrite/RewriteRope.cpp
sabre at nondot.org
Wed May 7 20:23:49 PDT 2008
Date: Wed May 7 22:23:46 2008
New Revision: 50839
Fix rdar://5919567: assertion failure: split didn't occur before erase!
--- cfe/trunk/lib/Rewrite/RewriteRope.cpp (original)
+++ cfe/trunk/lib/Rewrite/RewriteRope.cpp Wed May 7 22:23:46 2008
@@ -567,10 +567,12 @@
unsigned BytesFromChild = CurChild->size()-Offset;
NumBytes -= BytesFromChild;
+ // Start at the beginning of the next child.
+ Offset = 0;
// If the deletion request completely covers the child, delete it and move
// the rest down.
NumBytes -= CurChild->size();
More information about the cfe-commits