[PATCH] D54457: [AST] Generate unique identifiers for CXXCtorInitializer objects.

George Karpenkov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 12 17:20:35 PST 2018


george.karpenkov accepted this revision.
george.karpenkov added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/AST/DeclCXX.cpp:2249
 
+int64_t CXXCtorInitializer::getID(const ASTContext &Context) const {
+  Optional<int64_t> Out = Context.getAllocator().identifyObject(this);
----------------
Should we factor out this code? It's a fourth duplication now, probably a generic form should be in the allocator.


Repository:
  rC Clang

https://reviews.llvm.org/D54457





More information about the cfe-commits mailing list