[clang] [CIR] Compute union base subobject for tail-padding reuse (PR #201428)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 3 11:55:33 PDT 2026
================
@@ -870,8 +888,20 @@ void CIRRecordLowering::lowerUnion() {
if (layoutSize < getSize(storageType))
storageType = getByteArrayType(layoutSize);
- else
+
+ if (nonVirtualBaseType) {
----------------
erichkeane wrote:
This is also quite different than classic codegen. Why does it not need to calculate the padding here?
https://github.com/llvm/llvm-project/pull/201428
More information about the cfe-commits
mailing list