as the allocator is reset zero out the number of bytes allocated, this was just

missed before but probably what was intended.

llvm-svn: 175687
This commit is contained in:
Pedro Artigas 2013-02-20 23:30:56 +00:00
parent aeecb81472
commit a596ab2e12

View File

@ -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.