mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-04 01:11:44 +00:00
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:
parent
aeecb81472
commit
a596ab2e12
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user