================
@@ -242,6 +249,34 @@ class BumpPtrAllocatorImpl
 
   size_t GetNumSlabs() const { return Slabs.size() + CustomSizedSlabs.size(); }
 
+  SlabCheckPoint CheckPoint() const {
----------------
vgvassilev wrote:

Can we have an llvm-specific test case for this? This way we can put it as a 
separate PR. Probably `CheckPoint` needs a better name. I believe this is a 
more generic and useful interface hiding under this implementation.

https://github.com/llvm/llvm-project/pull/223305
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to