Skip to content

Commit aad8513

Browse files
authored
Merge pull request #81169 from Azoy/wrap-in-feature
[stdlib] Wrap InlineArray inlinable code in new feature
2 parents 3f61189 + 865aed0 commit aad8513

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stdlib/public/core/InlineArray.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,15 @@ extension InlineArray where Element: Copyable {
247247
@available(SwiftStdlib 6.2, *)
248248
@_alwaysEmitIntoClient
249249
public init(repeating value: Element) {
250+
#if $ValueGenericsNameLookup
250251
self = Builtin.emplace {
251252
let buffer = unsafe Self._initializationBuffer(start: $0)
252253

253254
unsafe buffer.initialize(repeating: value)
254255
}
256+
#else
257+
fatalError()
258+
#endif
255259
}
256260
}
257261

0 commit comments

Comments
 (0)