diff options
author | Pedro Artigas <partigas@apple.com> | 2013-02-20 23:30:56 +0000 |
---|---|---|
committer | Pedro Artigas <partigas@apple.com> | 2013-02-20 23:30:56 +0000 |
commit | 063d49f767e971f5cc77205d7ee8f8be36d9b013 (patch) | |
tree | 970f17c898d10f6848e56de66f40ec556e60b9ca /lib/Support | |
parent | 99e98551bf8719764f9345ce856118f3f1a9c441 (diff) | |
download | external_llvm-063d49f767e971f5cc77205d7ee8f8be36d9b013.zip external_llvm-063d49f767e971f5cc77205d7ee8f8be36d9b013.tar.gz external_llvm-063d49f767e971f5cc77205d7ee8f8be36d9b013.tar.bz2 |
as the allocator is reset zero out the number of bytes allocated, this was just
missed before but probably what was intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r-- | lib/Support/Allocator.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp index e269cf9..3c4191b 100644 --- a/lib/Support/Allocator.cpp +++ b/lib/Support/Allocator.cpp @@ -83,6 +83,7 @@ void BumpPtrAllocator::Reset() { CurSlab->NextPtr = 0; CurPtr = (char*)(CurSlab + 1); End = ((char*)CurSlab) + CurSlab->Size; + BytesAllocated = 0; } /// Allocate - Allocate space at the specified alignment. |