[flang-commits] [flang] [flang] Fix `getTypeSizeAndAlignment` for packed/tail-padded `RecordType` and `TRANSFER` gate (PR #220377)
via flang-commits
flang-commits at lists.llvm.org
Thu Sep 3 23:02:34 PDT 2026
================
@@ -0,0 +1,67 @@
+! RUN: %flang_fc1 -triple x86_64-unknown-linux-gnu -emit-hlfir %s -o - | FileCheck %s
+! REQUIRES: x86-registered-target
+
+! Regression test for https://github.com/llvm/llvm-project/pull/220377
+!
+! The TRANSFER inline gate compares store sizes, not allocation sizes.
+! Tail padding must not be included in the comparison.
+!
+! Types declared at module scope so that bare %flang_fc1 does not abort when
----------------
MattPD wrote:
The setup paragraph remains unchanged at `c5025ead076c`. With the intrinsic-module path used by lit, the full file compiles to LLVM IR successfully, and the module-scoped `t2` routine still emits `fir.embox`.
Could the setup paragraph be removed or updated to reflect those results?
https://github.com/llvm/llvm-project/pull/220377
More information about the flang-commits
mailing list