aprantl added inline comments.

================
Comment at: llvm/include/llvm/Support/Allocator.h:292
+    const char *P = reinterpret_cast<const char *>(Ptr);
+    for (size_t Idx=0; Idx < Slabs.size(); Idx++) {
+      const char *S = reinterpret_cast<const char *>(Slabs[Idx]);
----------------
clang-format?


================
Comment at: llvm/include/llvm/Support/Allocator.h:295
+      if (P >= S && P < S + computeSlabSize(Idx))
+        return std::make_pair(Idx, P - S);
+    }
----------------
`return {Idx, P - S};`


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