Work around inability to deserialize local typealiases <rdar://problem/17795074>.

Swift SVN r20491
This commit is contained in:
Doug Gregor
2014-07-24 15:53:38 +00:00
parent 5fc8ac7fd1
commit a6a3e48d1e
2 changed files with 4 additions and 4 deletions

View File

@@ -450,11 +450,11 @@ extension _ArrayBuffer {
/// Our native representation, if any. If there's no native
/// representation, the result is an empty buffer.
typealias _OptStorage = _ContiguousArrayStorage<T>?
var _native: NativeBuffer {
if !_isClassOrObjCExistential(T.self) {
typealias OptStorage = _ContiguousArrayStorage<T>?
return NativeBuffer(
unsafeBitCast(storage, OptStorage.self))
unsafeBitCast(storage, _OptStorage.self))
}
else {
let i = indirect