[test] Clean up a few more nocapture in tests

This commit is contained in:
Anthony Latsis
2025-11-02 08:28:54 +00:00
parent a8cef4451a
commit b0548203e2
2 changed files with 3 additions and 3 deletions

View File

@@ -19,14 +19,14 @@ func getNE(_ holder: Holder) -> NE
@_lifetime(&holder)
func getMutNE(_ holder: inout Holder) -> NE
// The parameter cannot be 'nocapture'.
// The parameter cannot be 'captures(none)'.
//
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A17testAddressableInyAA2NEVAA6HolderVF"(ptr noalias %0)
public func testAddressableIn(_ holder: Holder) -> NE {
getNE(holder)
}
// The parameter cannot be 'nocapture'.
// The parameter cannot be 'captures(none)'.
//
// CHECK-LABEL: define{{.*}} swiftcc void @"$s1A20testAddressableInoutyAA2NEVAA6HolderVzF"(ptr %0)
public func testAddressableInout(_ holder: inout Holder) -> NE {

View File

@@ -2,7 +2,7 @@
// REQUIRES: PTRSIZE=64
// 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)
// 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)
// CHECK: entry:
// CHECK: store i64 %1
// CHECK: getelementptr inbounds{{.*}} i8, ptr %0, i64 8