diff --git a/test/IRGen/addressable.swift b/test/IRGen/addressable.swift index b008fc3b25f39..26c1ee2feb3bc 100644 --- a/test/IRGen/addressable.swift +++ b/test/IRGen/addressable.swift @@ -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 { diff --git a/validation-test/IRGen/rdar149985633.swift b/validation-test/IRGen/rdar149985633.swift index 3ab9b20551c3a..b483ad366e07f 100644 --- a/validation-test/IRGen/rdar149985633.swift +++ b/validation-test/IRGen/rdar149985633.swift @@ -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