Skip to content

Commit a1089a2

Browse files
committed
[+0-all-args] Mark the storage parameter to _adoptStorage as a +1 parameter.
This fixes the optionset test with +0 enabled. It is now re-enabled. rdar://38152291
1 parent 4c6b452 commit a1089a2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

stdlib/public/core/Arrays.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1177,7 +1177,7 @@ extension ${Self} : RangeReplaceableCollection, ArrayProtocol {
11771177
@_versioned
11781178
@_semantics("array.uninitialized")
11791179
internal static func _adoptStorage(
1180-
_ storage: _ContiguousArrayStorage<Element>, count: Int
1180+
_ storage: __owned _ContiguousArrayStorage<Element>, count: Int
11811181
) -> (Array, UnsafeMutablePointer<Element>) {
11821182

11831183
let innerBuffer = _ContiguousArrayBuffer<Element>(

test/SILOptimizer/optionset.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// RUN: %target-swift-frontend -parse-as-library -primary-file %s -Osize -sil-verify-all -module-name=test -emit-sil | %FileCheck %s
33
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
44

5-
// XFAIL: plus_zero_runtime
6-
75
public struct TestOptions: OptionSet {
86
public let rawValue: Int
97
public init(rawValue: Int) { self.rawValue = rawValue }

0 commit comments

Comments
 (0)