mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Revert "stdlib: Remove dead semantic Array._setElement function"
This reverts r22468. Because it breaks the build. Swift SVN r22469
This commit is contained in:
@@ -273,6 +273,12 @@ public struct ${Self}<T> : MutableCollectionType, Sliceable {
|
||||
func _getElement(index: Int) -> Element {
|
||||
return _buffer[index]
|
||||
}
|
||||
@semantics("array.set_element")
|
||||
mutating func _setElement(
|
||||
index: Int, newValue: Element
|
||||
) {
|
||||
_buffer[index] = newValue
|
||||
}
|
||||
|
||||
@semantics("array.get_element_address")
|
||||
func _getElementAddress(index: Int) -> UnsafeMutablePointer<Element> {
|
||||
|
||||
Reference in New Issue
Block a user