Skip to content

Commit defcdb1

Browse files
committed
Fix a unit test mistake
1 parent fa652d9 commit defcdb1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/test/Transforms/DeadStoreElimination/inter-procedural.ll

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,14 +307,14 @@ declare void @read_global(ptr nocapture noundef initializes((0, 2))) nounwind
307307

308308
define i16 @global_var_alias() {
309309
; CHECK-LABEL: @global_var_alias(
310-
; CHECK-NEXT: store i32 0, ptr @g, align 4
311-
; CHECK-NEXT: [[G_ADDR:%.*]] = getelementptr i32, ptr @g, i64 1
310+
; CHECK-NEXT: store i16 0, ptr @g, align 4
311+
; CHECK-NEXT: [[G_ADDR:%.*]] = getelementptr i8, ptr @g, i64 1
312312
; CHECK-NEXT: call void @read_global(ptr [[G_ADDR]])
313313
; CHECK-NEXT: [[L:%.*]] = load i16, ptr @g, align 2
314314
; CHECK-NEXT: ret i16 [[L]]
315315
;
316-
store i32 0, ptr @g, align 4
317-
%g_addr = getelementptr i32, ptr @g, i64 1
316+
store i16 0, ptr @g, align 4
317+
%g_addr = getelementptr i8, ptr @g, i64 1
318318
call void @read_global(ptr %g_addr)
319319
%l = load i16, ptr @g
320320
ret i16 %l

0 commit comments

Comments
 (0)