Fix three-way mid-air collision around Array buffers and RangeReplaceable tests

Swift SVN r30843
This commit is contained in:
David Farler
2015-07-31 04:43:03 +00:00
parent 7851d348a8
commit 034d0cfbf0
2 changed files with 17 additions and 1 deletions

View File

@@ -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 {