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:
Ted Kremenek 2009-10-20 05:53:05 +00:00
Родитель 375e69cb19
Коммит 8f99993856
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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);
}