[flang-commits] [flang] [flang][nfc] Fix test unneccesarily checking type layout (PR #138585)
Asher Mancinelli via flang-commits
flang-commits at lists.llvm.org
Mon May 5 14:01:21 PDT 2025
https://github.com/ashermancinelli created https://github.com/llvm/llvm-project/pull/138585
Test added in #138339 unneccesarily had CHECK lines with the type layout, which fails on aix.
>From 72e3fa9b5ad02233b0b511af47ccd1c96b9bc152 Mon Sep 17 00:00:00 2001
From: Asher Mancinelli <ashermancinelli at gmail.com>
Date: Mon, 5 May 2025 13:56:08 -0700
Subject: [PATCH] [flang][nfc] Fix test unneccesarily checking type layout
Test added in #138339 unneccesarily had CHECK lines with the
type layout, which fails on aix.
---
flang/test/Lower/volatile-derived-type.f90 | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flang/test/Lower/volatile-derived-type.f90 b/flang/test/Lower/volatile-derived-type.f90
index edd77a9265530..963e4cf45a761 100644
--- a/flang/test/Lower/volatile-derived-type.f90
+++ b/flang/test/Lower/volatile-derived-type.f90
@@ -16,7 +16,7 @@ subroutine test(v)
! CHECK: %[[VAL_2:.*]] = arith.constant 2 : index
! CHECK: %[[VAL_3:.*]] = arith.constant 0 : index
! CHECK: %[[VAL_4:.*]] = fir.dummy_scope : !fir.dscope
-! CHECK: %[[VAL_5:.*]] = fir.address_of(@_QFE.b.t.e) : !fir.ref<!fir.array<2x1x!fir.type<_QM__fortran_type_infoTvalue{genre:i8,__padding0:!fir.array<7xi8>,value:i64}>>>
+! CHECK: %[[VAL_5:.*]] = fir.address_of(@_QFE.b.t.e) : !fir.ref<!fir.array<2x1x!fir.type<{{.+}}>>>
! CHECK: %[[VAL_6:.*]] = fir.shape_shift %[[VAL_3]], %[[VAL_2]], %[[VAL_3]], %[[VAL_1]] : (index, index, index, index) -> !fir.shapeshift<2>
! CHECK: %[[VAL_7:.*]]:2 = hlfir.declare %[[VAL_5]](%[[VAL_6]]) {fortran_attrs = #fir.var_attrs<target>, uniq_name = "_QFE.b.t.e"} :
! CHECK: %[[VAL_8:.*]] = fir.address_of(@_QFE.n.e) : !fir.ref<!fir.char<1>>
More information about the flang-commits
mailing list