Skip to content

Commit b2c2fcf

Browse files
authored
Revert "[Support] Recycler: Enforce minimum allocation size (#121425)"
This reverts commit 34e8aff.
1 parent 5f7568a commit b2c2fcf

File tree

3 files changed

+0
-49
lines changed

3 files changed

+0
-49
lines changed

llvm/include/llvm/Support/Recycler.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ class Recycler {
8585
"Recycler allocation alignment is less than object align!");
8686
static_assert(sizeof(SubClass) <= Size,
8787
"Recycler allocation size is less than object size!");
88-
static_assert(Size >= sizeof(FreeNode) &&
89-
"Recycler size must be at least sizeof(FreeNode)");
9088
return FreeList ? reinterpret_cast<SubClass *>(pop_val())
9189
: static_cast<SubClass *>(Allocator.Allocate(Size, Align));
9290
}

llvm/unittests/Support/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ add_llvm_unittest(SupportTests
6969
PerThreadBumpPtrAllocatorTest.cpp
7070
ProcessTest.cpp
7171
ProgramTest.cpp
72-
RecyclerTest.cpp
7372
RegexTest.cpp
7473
ReverseIterationTest.cpp
7574
ReplaceFileTest.cpp

llvm/unittests/Support/RecyclerTest.cpp

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)