[flang-commits] [flang] [flang] Fix RecordType sizes, TRANSFER lowering, and BIND(C) ABI on SystemZ/PPC64le (PR #220377)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 15 05:03:13 PDT 2026
================
@@ -1653,7 +1654,8 @@ fir::getTypeSizeAndAlignment(mlir::Location loc, mlir::Type ty,
// Dynamic / unknown shapes have no compile-time byte size.
if (seqTy.hasDynamicExtents() || seqTy.hasUnknownShape())
return std::nullopt;
- auto result = getTypeSizeAndAlignment(loc, seqTy.getEleTy(), dl, kindMap);
+ auto result = getTypeSizeAndAlignmentImpl(loc, seqTy.getEleTy(), dl,
+ kindMap, storeSizeOnly);
----------------
jeanPerier wrote:
Should `storeSizeOnly` really propagate into an array type? It seems to me that padding has to be accounted for in the case of array storage size.
https://github.com/llvm/llvm-project/pull/220377
More information about the flang-commits
mailing list