Skip to content

Commit efefe67

Browse files
etcwildefinagolfin
authored andcommitted
SILOptimizer: Fix Int64 assumption for armv7
Fixing test failure on the armv7 Android builds.
1 parent 2a0172d commit efefe67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/SILOptimizer/mutable_span_bounds_check_tests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public func sorted(_ span: borrowing MutableSpan<Int>) -> Bool {
174174
// CHECK-SIL-LABEL: sil @$s31mutable_span_bounds_check_tests22outputspan_get_elementySis10OutputSpanVySiG_SitF :
175175
// CHECK-SIL: [[REG1:%.*]] = struct_extract %0, #OutputSpan._count
176176
// CHECK-SIL: [[REG2:%.*]] = struct_extract [[REG1]], #Int._value
177-
// CHECK-SIL: [[REG3:%.*]] = builtin "assumeNonNegative_Int64"([[REG2]]) : $Builtin.Int64
177+
// CHECK-SIL: [[REG3:%.*]] = builtin "assumeNonNegative_Int{{32|64}}"([[REG2]]) : $Builtin.Int{{32|64}}
178178
// CHECK-SIL-LABEL:} // end sil function '$s31mutable_span_bounds_check_tests22outputspan_get_elementySis10OutputSpanVySiG_SitF'
179179
public func outputspan_get_element(_ v: borrowing OutputSpan<Int>, _ i: Int) -> Int {
180180
return v[i]

0 commit comments

Comments
 (0)