NoQ added inline comments.

================
Comment at: llvm/include/llvm/Support/Allocator.h:304
+    // Use negative index to denote custom sized slabs.
+    int64_t CustomSlabOffset = 0;
+    for (size_t Idx = 0; Idx < CustomSizedSlabs.size(); Idx++) {
----------------
We should start with -1 because otherwise the first standard-slab object and 
the first custom-slab object would both have id 0.


https://reviews.llvm.org/D51393



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to