Skip to content

Commit a39a29c

Browse files
authored
Merge pull request #36129 from aschwaighofer/fix_test_simple_partial_apply_arm64e_5.4
[5.4] Fix test/IRGen/simple_partial_apply.sil on arm64e
2 parents dc715b1 + 8d1fb24 commit a39a29c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/IRGen/simple_partial_apply.sil

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ entry(%body : $@convention(method) (Int, @guaranteed C) -> Int, %context : $C):
2727

2828
// CHECK-LABEL: define {{.*}} @escape_partial_apply_swift_single_refcount_struct
2929
// CHECK: [[CTXT:%.*]] = call {{.*}} @swift_allocObject
30-
// CHECK: [[FCTX:%.*]] = insertvalue { i8*, %swift.refcounted* } { i8* bitcast (i{{(64|32)}} (i{{(64|32)}}, %swift.refcounted*)* @"$sTA" to i8*), %swift.refcounted* undef }, %swift.refcounted* [[CTXT]], 1
30+
// CHECK: [[FCTX:%.*]] = insertvalue { i8*, %swift.refcounted* } { i8* bitcast ({{.*}}* @"$sTA{{.*}}" to i8*), %swift.refcounted* undef }, %swift.refcounted* [[CTXT]], 1
3131
// CHECK-NEXT: ret { i8*, %swift.refcounted* } [[FCTX]]
3232
sil @escape_partial_apply_swift_single_refcount_struct : $@convention(thin) (@convention(method) (Int, @guaranteed SingleRefcounted) -> Int, @guaranteed SingleRefcounted) -> @callee_guaranteed (Int) -> Int {
3333
entry(%body : $@convention(method) (Int, @guaranteed SingleRefcounted) -> Int, %context : $SingleRefcounted):
@@ -50,7 +50,7 @@ entry(%body : $@convention(method) (Int, @in_guaranteed C) -> Int, %context : $*
5050

5151
// Can't reuse the method because it does not have swiftself.
5252
// CHECK-LABEL: define {{.*}} @noescape_partial_apply_swift_direct_word
53-
// CHECK: call swiftcc void %11(i8* bitcast (i{{(64|32)}} (i{{(64|32)}}, %swift.refcounted*)* @"$sTA.1" to i8*), %swift.opaque* {{.*}}, %swift.refcounted* swiftself {{.*}})
53+
// CHECK: call swiftcc void {{.*}}(i8* bitcast ({{.*}}* @"$sTA{{.*}}" to i8*), %swift.opaque* {{.*}}, %swift.refcounted* swiftself {{.*}})
5454
sil @noescape_partial_apply_swift_direct_word : $@convention(thin) (@convention(method) (Int, Int) -> Int, Int, @guaranteed @callee_guaranteed (@noescape @callee_guaranteed (Int) -> Int) -> ()) -> () {
5555
entry(%body : $@convention(method) (Int, Int) -> Int, %context : $Int, %cont : $@callee_guaranteed (@noescape @callee_guaranteed (Int) -> Int) -> ()):
5656
%closure = partial_apply [callee_guaranteed] [on_stack] %body(%context) : $@convention(method) (Int, Int) -> Int

0 commit comments

Comments
 (0)