[clang] [Clang][ByteCode] Store type information inside the custom stack (PR #224903)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Sun Sep 20 04:20:50 PDT 2026
================
@@ -88,16 +120,13 @@ class InterpStack final {
void dump() const;
private:
- /// All stack slots are aligned to the native pointer alignment for storage.
- /// The size of an object is rounded up to a pointer alignment multiple.
- template <typename T> static constexpr size_t aligned_size() {
- constexpr size_t PtrAlign = alignof(void *);
- return ((sizeof(T) + PtrAlign - 1) / PtrAlign) * PtrAlign;
+ PrimType getNextObjectType() const {
----------------
tbaederr wrote:
"next" seems like it doesn't make sense in the context? `getTopmostObjectType()` seems better? I'm also not sure about "object" in this context.
https://github.com/llvm/llvm-project/pull/224903
More information about the cfe-commits
mailing list