Skip to content

Commit e08d69e

Browse files
authored
Merge pull request #80052 from eeckstein/fix-test
tests: Fix SILOptimizer/sil_combine_concrete_existential_ossa.swift for 32 bit architectures
2 parents 9d25009 + e0b6258 commit e08d69e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

test/SILOptimizer/sil_combine_concrete_existential_ossa.swift

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
// RUN: %target-swift-frontend -O -enable-ossa-modules -Xllvm -sil-print-types -emit-sil -Xllvm -sil-verify-force-analysis-around-pass=devirtualizer -Xllvm -sil-disable-pass=function-signature-opts %s | %FileCheck %s
33

44
// REQUIRES: swift_in_compiler
5-
// REQUIRES: OS=macosx
65

76
//===----------------------------------------------------------------------===//
87
// testReturnSelf: Call to a protocol extension method with
@@ -159,14 +158,14 @@ func takesA<T: ProtoA>(_ type: T.Type) -> T? {
159158
}
160159

161160
public struct SomeStruct: ProtoB {
162-
var x = 27
161+
var x: Int64 = 27
163162
public init() {}
164163
}
165164

166165
// CHECK-LABEL: sil @$s37sil_combine_concrete_existential_ossa16createSomeStructAA0gH0VSgyF :
167166
// CHECK: [[L:%.*]] = integer_literal $Builtin.Int64, 27
168-
// CHECK-NEXT: [[I:%.*]] = struct $Int ([[L]] : $Builtin.Int64)
169-
// CHECK-NEXT: [[S:%.*]] = struct $SomeStruct ([[I]] : $Int)
167+
// CHECK-NEXT: [[I:%.*]] = struct $Int64 ([[L]] : $Builtin.Int64)
168+
// CHECK-NEXT: [[S:%.*]] = struct $SomeStruct ([[I]] : $Int64)
170169
// CHECK-NEXT: [[O:%.*]] = enum $Optional<SomeStruct>, #Optional.some!enumelt, [[S]] : $SomeStruct
171170
// CHECK-NEXT: return [[O]] : $Optional<SomeStruct>
172171
// CHECK: } // end sil function '$s37sil_combine_concrete_existential_ossa16createSomeStructAA0gH0VSgyF'

0 commit comments

Comments
 (0)