[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator

Artem Dergachev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 6 15:17:12 PDT 2018


NoQ accepted this revision.
NoQ added a comment.
This revision is now accepted and ready to land.

I'm happy with the code.



================
Comment at: llvm/include/llvm/Support/Allocator.h:298
+      if (P >= S && P < S + computeSlabSize(Idx))
+        return InSlabIdx +  static_cast<int64_t>(P - S);
+      InSlabIdx += static_cast<int64_t>(computeSlabSize(Idx));
----------------
Two spaces here.


https://reviews.llvm.org/D51393





More information about the llvm-commits mailing list