Skip to content

Commit f461353

Browse files
committed
[cxx-interop] Optimize CxxSet initialization from a Swift Sequence
rdar://107909624 (cherry picked from commit 042aff2)
1 parent a038771 commit f461353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Cxx/CxxSet.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ extension CxxSet {
3131
/// - Complexity: O(*n*), where *n* is the number of elements in the Swift
3232
/// sequence
3333
@inlinable
34-
public init<S: Sequence>(_ sequence: S) where S.Element == Element {
34+
public init<S: Sequence>(_ sequence: __shared S) where S.Element == Element {
3535
self.init()
3636
for item in sequence {
3737
self.__insertUnsafe(item)

0 commit comments

Comments
 (0)