From: Pedro Artigas Date: Wed, 20 Feb 2013 23:30:56 +0000 (+0000) Subject: as the allocator is reset zero out the number of bytes allocated, this was just X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=063d49f767e971f5cc77205d7ee8f8be36d9b013;p=oota-llvm.git 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 --- diff --git a/lib/Support/Allocator.cpp b/lib/Support/Allocator.cpp index e269cf997a0..3c4191b805a 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.