[PATCH] D51393: Provide a method for generating deterministic IDs for pointers allocated in BumpPtrAllocator
Dávid Bolvanský via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 4 12:48:33 PDT 2018
xbolva00 added inline comments.
================
Comment at: llvm/include/llvm/Support/Allocator.h:295
+ int64_t TotalSlabOffset = 0;
+ for (size_t Idx = 0; Idx < Slabs.size(); Idx++) {
+ const char *S = reinterpret_cast<const char *>(Slabs[Idx]);
----------------
for (size_t Idx = 0, e = Slabs.size(); Idx < e; Idx++) {
https://reviews.llvm.org/D51393
More information about the cfe-commits
mailing list