Skip to content

Commit 7fec04c

Browse files
committed
Fix a test case with copy-pasted SIL IDs.
1 parent 96910db commit 7fec04c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

validation-test/compiler_crashers_2_fixed/0134-rdar35947198.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
// CHECK-LABEL: sil shared [transparent] [thunk] @$sSf4main7NumProtA2aBP5valueSdyFTW : $@convention(witness_method: NumProt) (@in_guaranteed Float) -> Double
44
// CHECK-NOT: %1 = load %0 : $*Float
55
// CHECK-NOT: function_ref @$sSf4mainE5valueSdyF : $@convention(method) (Float) -> Double
6-
// CHECK: %1 = struct_element_addr %0 : $*Float, #Float._value // user: %2
7-
// CHECK: %2 = load %1 : $*Builtin.FPIEEE32 // user: %3
8-
// CHECK: %3 = builtin "fpext_FPIEEE32_FPIEEE64"(%2 : $Builtin.FPIEEE32) : $Builtin.FPIEEE64 // user: %4
9-
// CHECK: %4 = struct $Double (%3 : $Builtin.FPIEEE64) // user: %5
10-
// CHECK: return %4 : $Double
6+
// CHECK: struct_element_addr %0 : $*Float, #Float._value
7+
// CHECK: load %{{.*}} : $*Builtin.FPIEEE32
8+
// CHECK: builtin "fpext_FPIEEE32_FPIEEE64"(%{{.*}} : $Builtin.FPIEEE32) : $Builtin.FPIEEE64
9+
// CHECK: struct $Double (%{{.*}} : $Builtin.FPIEEE64)
10+
// CHECK: return
1111

1212
public protocol NumProt: Prot {
1313
func value() -> Double

0 commit comments

Comments
 (0)