================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to