forked from OSchip/llvm-project
Revert 84601. Looks like it was causing failures on some systems.
llvm-svn: 84610
This commit is contained in:
parent
cbd395c898
commit
988c5811ee
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue