forked from OSchip/llvm-project
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
1ac5322e61
commit
0c09481d6b
|
@ -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