Skip to content

Commit 8e9f7b6

Browse files
authored
Merge pull request swiftlang#78408 from eeckstein/fix-test
tests: fix SILOptimizer/dead_alloc_elim_ossa.sil for 32-bit architectures
2 parents 93eb973 + 6c94b6d commit 8e9f7b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILOptimizer/dead_alloc_elim_ossa.sil

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class ArrayStorage {
2929
}
3030

3131
class Kl2 {
32-
@_hasStorage var i: Int
32+
@_hasStorage var i: Int64
3333
}
3434

3535

@@ -562,14 +562,14 @@ bb0(%0 : @owned $_ContiguousArrayStorage<Element>):
562562
// CHECK-LABEL: sil [ossa] @dead_alloc_with_complex_ossa_destructor
563563
// CHECK-NOT: alloc_ref
564564
// CHECK: } // end sil function 'dead_alloc_with_complex_ossa_destructor'
565-
sil [ossa] @dead_alloc_with_complex_ossa_destructor : $@convention(thin) () -> Int {
565+
sil [ossa] @dead_alloc_with_complex_ossa_destructor : $@convention(thin) () -> Int64 {
566566
bb0:
567567
%0 = alloc_ref $Kl2
568568
%1 = move_value [lexical] %0
569569
%2 = end_init_let_ref %1
570570
%3 = begin_borrow %2
571571
%4 = integer_literal $Builtin.Int64, 27
572-
%5 = struct $Int (%4)
572+
%5 = struct $Int64 (%4)
573573
%6 = ref_element_addr %3, #Kl2.i
574574
store %5 to [trivial] %6
575575
end_borrow %3

0 commit comments

Comments
 (0)