зеркало из https://github.com/microsoft/clang-1.git
Revert 84601. Looks like it was causing failures on some systems.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84610 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
375e69cb19
Коммит
8f99993856
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче