[clang] [clang-tools-extra] [lldb] [llvm] [Allocator] Drop RedZoneSize (non-sanitizer) and BytesAllocated members (PR #205711)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Sat Jun 27 17:31:03 PDT 2026


================
@@ -308,15 +307,14 @@ class BumpPtrAllocatorImpl
     return TotalMemory;
   }
 
-  size_t getBytesAllocated() const { return BytesAllocated; }
-
-  void setRedZoneSize(size_t NewSize) {
+  void setRedZoneSize([[maybe_unused]] size_t NewSize) {
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
     RedZoneSize = NewSize;
+#endif
   }
 
   void PrintStats() const {
-    detail::printBumpPtrAllocatorStats(Slabs.size(), BytesAllocated,
-                                       getTotalMemory());
+    detail::printBumpPtrAllocatorStats(Slabs.size(), 0, getTotalMemory());
----------------
MaskRay wrote:

removed

https://github.com/llvm/llvm-project/pull/205711


More information about the cfe-commits mailing list