Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 56aa999

Browse files
committedJan 14, 2025·
CIR: Fix broken tests
1 parent 02e18ab commit 56aa999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎clang/test/CIR/CodeGen/array-init.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void bar(int a, int b, int c) {
5050
// CHECK-NEXT: [[SE_EL:%.*]] = cir.ptr_stride(%4 : !cir.ptr<!s32i>, [[ONE]] : !s64i), !cir.ptr<!s32i>
5151
// CHECK-NEXT: [[LOAD_B:%.*]] = cir.load [[B]] : !cir.ptr<!s32i>, !s32i
5252
// CHECK-NEXT: cir.store [[LOAD_B]], [[SE_EL]] : !s32i, !cir.ptr<!s32i>
53-
// CHECK-NEXT: [[TH_EL:%.*]] = cir.ptr_stride(%7 : !cir.ptr<!s32i>, [[ONE]] : !s64i), !cir.ptr<!s32i>
53+
// CHECK-NEXT: [[TWO:%.*]] = cir.const #cir.int<2> : !s64i
54+
// CHECK-NEXT: [[TH_EL:%.*]] = cir.ptr_stride(%4 : !cir.ptr<!s32i>, [[TWO]] : !s64i), !cir.ptr<!s32i>
5455
// CHECK-NEXT: [[LOAD_C:%.*]] = cir.load [[C]] : !cir.ptr<!s32i>, !s32i
5556
// CHECK-NEXT: cir.store [[LOAD_C]], [[TH_EL]] : !s32i, !cir.ptr<!s32i>
5657

0 commit comments

Comments
 (0)
Please sign in to comment.