Skip to content

Commit fea58c8

Browse files
committed
IRGen: Fix global_resilience test again
1 parent c823974 commit fea58c8

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/IRGen/global_resilience.sil

+3-5
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,9 @@ bb0:
9393

9494
%addr = global_addr @fixedGlobal : $*LargeResilientStruct
9595

96-
// CHECK: load i64, i64* getelementptr inbounds (%V17global_resilience20LargeResilientStruct, %V17global_resilience20LargeResilientStruct* @fixedGlobal, i32 0, i32 0, i32 0)
97-
// CHECK-NEXT: load i64, i64* getelementptr inbounds (%V17global_resilience20LargeResilientStruct, %V17global_resilience20LargeResilientStruct* @fixedGlobal, i32 0, i32 1, i32 0)
98-
// CHECK-NEXT: load i64, i64* getelementptr inbounds (%V17global_resilience20LargeResilientStruct, %V17global_resilience20LargeResilientStruct* @fixedGlobal, i32 0, i32 2, i32 0)
99-
// CHECK-NEXT: load i64, i64* getelementptr inbounds (%V17global_resilience20LargeResilientStruct, %V17global_resilience20LargeResilientStruct* @fixedGlobal, i32 0, i32 3, i32 0)
100-
%value = load %addr : $*LargeResilientStruct
96+
// CHECK: load i64, i64* getelementptr inbounds (%V17global_resilience20LargeResilientStruct, %V17global_resilience20LargeResilientStruct* @fixedGlobal, i32 0, i32 1, i32 0)
97+
%x_addr = struct_element_addr %addr : $*LargeResilientStruct, #LargeResilientStruct.x
98+
%x = load %x_addr : $*Int64
10199

102100
%tuple = tuple ()
103101

0 commit comments

Comments
 (0)