mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Work around inability to deserialize local typealiases <rdar://problem/17795074>.
Swift SVN r20491
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user