We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5e6aefd commit 4f114f2Copy full SHA for 4f114f2
llvm/include/llvm/Support/Recycler.h
@@ -60,6 +60,10 @@ class Recycler {
60
// clear() before deleting the Recycler.
61
assert(!FreeList && "Non-empty recycler deleted!");
62
}
63
+ Recycler(const Recycler &) = delete;
64
+ Recycler(Recycler &&Other)
65
+ : FreeList(std::exchange(Other.FreeList, nullptr)) {}
66
+ Recycler() = default;
67
68
/// clear - Release all the tracked allocations to the allocator. The
69
/// recycler must be free of any tracked allocations before being
0 commit comments