Skip to content

Commit efbd1af

Browse files
Merge pull request #85269 from swiftlang/jepa-main4
[test] Clean up a few more nocapture in tests
2 parents ba507ab + b054820 commit efbd1af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/IRGen/addressable.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ func getNE(_ holder: Holder) -> NE
1919
@_lifetime(&holder)
2020
func getMutNE(_ holder: inout Holder) -> NE
2121

22-
// The parameter cannot be 'nocapture'.
22+
// The parameter cannot be 'captures(none)'.
2323
//
2424
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A17testAddressableInyAA2NEVAA6HolderVF"(ptr noalias %0)
2525
public func testAddressableIn(_ holder: Holder) -> NE {
2626
getNE(holder)
2727
}
2828

29-
// The parameter cannot be 'nocapture'.
29+
// The parameter cannot be 'captures(none)'.
3030
//
3131
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A20testAddressableInoutyAA2NEVAA6HolderVzF"(ptr %0)
3232
public func testAddressableInout(_ holder: inout Holder) -> NE {

validation-test/IRGen/rdar149985633.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// REQUIRES: PTRSIZE=64
44

5-
// CHECK: define {{.*}}swiftcc void @"$s13rdar1499856334DateV1a1b1c1d1e1fACSiSg_A5JtcfC"(ptr noalias{{( nocapture)?}} writeonly sret(%T13rdar1499856334DateV){{( captures\(none\))?}}{{.*}} %0, i64 %1, i8 %2, i64 %3, i8 %4, i64 %5, i8 %6, i64 %7, i8 %8, i64 %9, i8 %10, i64 %11, i8 %12)
5+
// CHECK: define {{.*}}swiftcc void @"$s13rdar1499856334DateV1a1b1c1d1e1fACSiSg_A5JtcfC"(ptr noalias writeonly sret(%T13rdar1499856334DateV) captures(none){{.*}} %0, i64 %1, i8 %2, i64 %3, i8 %4, i64 %5, i8 %6, i64 %7, i8 %8, i64 %9, i8 %10, i64 %11, i8 %12)
66
// CHECK: entry:
77
// CHECK: store i64 %1
88
// CHECK: getelementptr inbounds{{.*}} i8, ptr %0, i64 8

0 commit comments

Comments
 (0)