mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
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
This commit is contained in:
parent
99e98551bf
commit
063d49f767
@ -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…
x
Reference in New Issue
Block a user