From 042aff2a760b49fe8ff2360ce6eb443c29f6a093 Mon Sep 17 00:00:00 2001 From: Egor Zhdan Date: Tue, 13 Jun 2023 18:04:20 +0100 Subject: [PATCH] [cxx-interop] Optimize CxxSet initialization from a Swift Sequence rdar://107909624 --- stdlib/public/Cxx/CxxSet.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/public/Cxx/CxxSet.swift b/stdlib/public/Cxx/CxxSet.swift index e3f143da45b60..d468f6deed52e 100644 --- a/stdlib/public/Cxx/CxxSet.swift +++ b/stdlib/public/Cxx/CxxSet.swift @@ -31,7 +31,7 @@ extension CxxSet { /// - Complexity: O(*n*), where *n* is the number of elements in the Swift /// sequence @inlinable - public init(_ sequence: S) where S.Element == Element { + public init(_ sequence: __shared S) where S.Element == Element { self.init() for item in sequence { self.__insertUnsafe(item)