[PATCH] D116750: [clang][lex] Keep references to `DirectoryLookup` objects up-to-date

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 11 07:17:55 PST 2022


thakis added a comment.

> That's referring to the fact that once we allocate new `DirectoryLookup` with `SpecificBumpPtrAllocator`, address of that object won't change (unlike with `std::vector`). This means that we can take the address and use it without worrying about invalidation.

Ah, "stable" made me think of iteration order, but that's not what you meant. Makes sense, thanks!


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D116750/new/

https://reviews.llvm.org/D116750



More information about the cfe-commits mailing list