projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
BumpPtrAllocator: remove 'no slabs allocated yet' check
[oota-llvm.git]
/
unittests
/
Support
/
AllocatorTest.cpp
diff --git
a/unittests/Support/AllocatorTest.cpp
b/unittests/Support/AllocatorTest.cpp
index 0fc84c7613f30cb715d9c83fc3597e3a6248fcb7..dc92ff9ef038c7920e72235b4afd768e99bb64b3 100644
(file)
--- a/
unittests/Support/AllocatorTest.cpp
+++ b/
unittests/Support/AllocatorTest.cpp
@@
-112,7
+112,7
@@
TEST(AllocatorTest, TestSmallSlabSize) {
BumpPtrAllocator Alloc;
Alloc.Allocate(8000, 0);
- EXPECT_EQ(
2
U, Alloc.GetNumSlabs());
+ EXPECT_EQ(
1
U, Alloc.GetNumSlabs());
}
// Mock slab allocator that returns slabs aligned on 4096 bytes. There is no