mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix three-way mid-air collision around Array buffers and RangeReplaceable tests
Swift SVN r30843
This commit is contained in:
@@ -247,7 +247,7 @@ public struct ${Self}<Element>
|
||||
public subscript(index: Int) -> Element {
|
||||
addressWithNativeOwner {
|
||||
_checkSubscript(index, hoistedIsNativeBuffer: true)
|
||||
return (UnsafePointer(_buffer.baseAddress + index),
|
||||
return (UnsafePointer(_buffer.subscriptBaseAddress + index),
|
||||
Builtin.castToNativeObject(_buffer.owner))
|
||||
}
|
||||
mutableAddressWithPinnedNativeOwner {
|
||||
|
||||
Reference in New Issue
Block a user