Skip to content

Commit d98331d

Browse files
committed
Fix test/IRGen/simple_partial_apply_or_not.swift on arm64e
1 parent 5e9d4d8 commit d98331d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/IRGen/simple_partial_apply_or_not.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,12 @@ print("Hello!")
3434
let s = S()
3535
print(s)
3636

37+
// We need to call a partial apply thunk instead of directly calling the method
38+
// because the ABI of closure requires swiftself in the context parameter but
39+
// the method of this self type (struct S) does not.
40+
3741
// CHECK: define {{.*}}swiftcc %T4test5StateV9Reference33_C903A018FCE7355FD30EF8324850EB90LLCySi_G* @"$s4test1SVACycfC"()
38-
// CHECK: call swiftcc void @"$s4test1SV5valueSivsTA"(i{{(32|64)}} 10, %swift.refcounted* swiftself {{.*}})
42+
// CHECK: call swiftcc void {{.*}}"$s4test1SV5valueSivsTA
3943
// CHECK: ret %T4test5StateV9Reference33_C903A018FCE7355FD30EF8324850EB90LLCySi_G
4044

4145
// This used to crash.

0 commit comments

Comments
 (0)