Skip to content

Commit a3bdc5b

Browse files
committed
Fix test/IRGen/enum_resilience.swift
1 parent d102570 commit a3bdc5b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/IRGen/enum_resilience.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ public func reabstraction<T>(_ f: (Medium) -> T) {}
252252
// CHECK-LABEL: define{{( dllexport)?}}{{( protected)?}} swiftcc void @"$s15enum_resilience25resilientEnumPartialApplyyySi0c1_A06MediumOXEF"(i8*, %swift.opaque*)
253253
public func resilientEnumPartialApply(_ f: (Medium) -> Int) {
254254

255-
// CHECK: [[CONTEXT:%.*]] = call noalias %swift.refcounted* @swift_allocObject
255+
// CHECK: [[STACKALLOC:%.*]] = alloca i8
256+
// CHECK: [[CONTEXT:%.*]] = bitcast i8* [[STACKALLOC]] to %swift.opaque*
256257
// CHECK: call swiftcc void @"$s15enum_resilience13reabstractionyyx010resilient_A06MediumOXElF"(i8* bitcast (void (%TSi*, %swift.opaque*, %swift.refcounted*)* @"$s14resilient_enum6MediumOSiIgnd_ACSiIegnr_TRTA" to i8*), %swift.opaque* [[CONTEXT:%.*]], %swift.type* @"$sSiN")
257258
reabstraction(f)
258259

0 commit comments

Comments
 (0)