Skip to content

Commit c9b557b

Browse files
committed
Update struct.c test after rebase
1 parent 46d2706 commit c9b557b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

clang/test/CIR/CodeGen/struct.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// checks are at the top.
1010
// CIR-DAG: !rec_IncompleteS = !cir.record<struct "IncompleteS" incomplete>
1111
// CIR-DAG: !rec_CompleteS = !cir.record<struct "CompleteS" {!s32i, !s8i}>
12-
// CIR-DAG: !rec_OuterS = !cir.record<struct "OuterS" {!ty_InnerS, !s32i}>
12+
// CIR-DAG: !rec_OuterS = !cir.record<struct "OuterS" {!rec_InnerS, !s32i}>
1313
// CIR-DAG: !rec_InnerS = !cir.record<struct "InnerS" {!s32i, !s8i}>
1414
// CIR-DAG: !rec_PackedS = !cir.record<struct "PackedS" packed {!s32i, !s8i}>
1515
// CIR-DAG: !rec_PackedAndPaddedS = !cir.record<struct "PackedAndPaddedS" packed padded {!s32i, !s8i, !u8i}>
@@ -26,8 +26,7 @@
2626

2727
struct IncompleteS *p;
2828

29-
// CIR: cir.global external @p = #cir.ptr<null> : !cir.ptr<!cir.record<struct
30-
// CIR-SAME: "IncompleteS" incomplete>>
29+
// CIR: cir.global external @p = #cir.ptr<null> : !cir.ptr<!rec_IncompleteS>
3130
// LLVM-DAG: @p = dso_local global ptr null
3231
// OGCG-DAG: @p = global ptr null, align 8
3332

@@ -158,7 +157,7 @@ char f4(int a, struct CompleteS *p) {
158157
return p->b;
159158
}
160159

161-
// CIR: cir.func @f4(%[[ARG_A:.*]]: !s32i {{.*}}, %[[ARG_P:.*]]: !cir.ptr<!cir.record<struct "CompleteS" {!s32i, !s8i}>>
160+
// CIR: cir.func @f4(%[[ARG_A:.*]]: !s32i {{.*}}, %[[ARG_P:.*]]: !cir.ptr<!rec_CompleteS>
162161
// CIR-NEXT: %[[A_ADDR:.*]] = cir.alloca {{.*}} ["a", init] {alignment = 4 : i64}
163162
// CIR-NEXT: %[[P_ADDR:.*]] = cir.alloca {{.*}} ["p", init] {alignment = 8 : i64}
164163
// CIR-NEXT: %[[RETVAL_ADDR:.*]] = cir.alloca {{.*}} ["__retval"] {alignment = 1 : i64}

0 commit comments

Comments
 (0)