Revert 84601. Looks like it was causing failures on some systems.

llvm-svn: 84610
This commit is contained in:
Ted Kremenek 2009-10-20 05:53:05 +00:00
parent cbd395c898
commit 988c5811ee
1 changed files with 3 additions and 2 deletions

View File

@ -798,8 +798,9 @@ RopePiece RewriteRope::MakeRopeString(const char *Start, const char *End) {
memcpy(AllocBuffer->Data, Start, Len);
AllocOffs = Len;
// Return a RopePiece that wraps 'AllocBuffer'. The constructor of RopePiece
// will increment the reference count of AllocBuffer.
// Start out the new allocation with a refcount of 1, since we have an
// internal reference to it.
AllocBuffer->addRef();
return RopePiece(AllocBuffer, 0, Len);
}