[clang] [clang][bytecode] Add `LocalInlineDesc` for local variables (PR #239505)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 6 01:23:28 PST 2026
================
@@ -72,21 +72,13 @@ Block *DynamicAllocator::allocate(const Descriptor *D, unsigned EvalID,
std::make_unique<std::byte[]>(Block::allocSize(D, Block::Local));
auto *B = new (Memory.get()) Block(EvalID, D, Block::Local);
B->invokeCtorNoMemset();
- InlineDescriptor &ID = B->getBlockDesc<InlineDescriptor>();
- ID.Desc = D;
- ID.IsActive = true;
- ID.Offset = sizeof(InlineDescriptor);
- ID.IsBase = false;
- ID.IsFieldMutable = false;
- ID.IsConst = false;
- ID.IsInitialized = false;
- ID.IsVolatile = false;
+ auto &ID = B->getBlockDesc<LocalInlineDescriptor>();
----------------
tbaederr wrote:
Yes.
https://github.com/llvm/llvm-project/pull/239505
More information about the cfe-commits
mailing list