projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99e9855
)
as the allocator is reset zero out the number of bytes allocated, this was just
author
Pedro Artigas
<partigas@apple.com>
Wed, 20 Feb 2013 23:30:56 +0000
(23:30 +0000)
committer
Pedro Artigas
<partigas@apple.com>
Wed, 20 Feb 2013 23:30:56 +0000
(23:30 +0000)
missed before but probably what was intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@175687
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/Allocator.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/Allocator.cpp
b/lib/Support/Allocator.cpp
index e269cf997a08bc07b5547f9bb6f09bec4dffc912..3c4191b805a368eecb820cdecb11dad839ae497a 100644
(file)
--- 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.