Skip to content

Commit 3bef25d

Browse files
committed
Fix test to refer to the new overload
1 parent 6ea1112 commit 3bef25d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/SILOptimizer/array_contentof_opt.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -O -sil-verify-all -emit-sil -Xllvm '-sil-inline-never-functions=$sSa6appendyy' -Xllvm -sil-inline-never-function='$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSi_SaySiGTg5' %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -O -sil-verify-all -emit-sil -Xllvm '-sil-inline-never-functions=$sSa6appendyy' -Xllvm -sil-inline-never-function='$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSlRd__lFSi_SaySiGTg5' %s | %FileCheck %s
22
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
33

44
// This is an end-to-end test of the Array.append(contentsOf:) ->
@@ -63,7 +63,7 @@ public func dontPropagateContiguousArray(_ a: inout ContiguousArray<UInt8>) {
6363

6464
// Check if the specialized Array.append<A>(contentsOf:) is reasonably optimized for Array<Int>.
6565

66-
// CHECK-LABEL: sil shared {{.*}}@$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSi_SaySiGTg5
66+
// CHECK-LABEL: sil shared {{.*}}@$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSlRd__lFSi_SaySiGTg5
6767

6868
// There should only be a single call to _createNewBuffer or reserveCapacityForAppend/reserveCapacityImpl.
6969

@@ -72,5 +72,5 @@ public func dontPropagateContiguousArray(_ a: inout ContiguousArray<UInt8>) {
7272
// CHECK: apply [[F]]
7373
// CHECK-NOT: apply
7474

75-
// CHECK-LABEL: } // end sil function '$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSTRd__lFSi_SaySiGTg5
75+
// CHECK-LABEL: } // end sil function '$sSa6append10contentsOfyqd__n_t7ElementQyd__RszSlRd__lFSi_SaySiGTg5
7676

0 commit comments

Comments
 (0)