[clang] [serialization] no transitive decl change (PR #92083)
Jan Svoboda via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 3 09:42:05 PDT 2024
================
@@ -111,6 +109,28 @@ void *Decl::operator new(std::size_t Size, const ASTContext &Ctx,
return ::operator new(Size + Extra, Ctx);
}
+GlobalDeclID Decl::getGlobalID() const {
+ if (!isFromASTFile())
+ return GlobalDeclID();
+ uint64_t ID = *((const uint64_t *)this - 1);
----------------
jansvoboda11 wrote:
Makes sense, thanks!
https://github.com/llvm/llvm-project/pull/92083
More information about the cfe-commits
mailing list