[compiler-rt] [scudo] Make BufferPool typed and always express sizes in terms of element count (PR #66896)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 15:22:02 PDT 2023


================
@@ -200,22 +208,16 @@ template <uptr StaticBufferCount, uptr StaticBufferSize> class BufferPool {
 class RegionPageMap {
 public:
   RegionPageMap()
-      : Regions(0),
-        NumCounters(0),
-        CounterSizeBitsLog(0),
-        CounterMask(0),
-        PackingRatioLog(0),
-        BitOffsetMask(0),
-        SizePerRegion(0),
-        BufferSize(0),
-        Buffer(nullptr) {}
+      : Regions(0), NumCounters(0), CounterSizeBitsLog(0), CounterMask(0),
+        PackingRatioLog(0), BitOffsetMask(0), SizePerRegion(0),
+        BufferNumElements(0), Buffer(nullptr) {}
----------------
ChiaHungDuan wrote:

Just curious, are these lines formatted by clang-format? I think you didn't change the code here.

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


More information about the llvm-commits mailing list