Swift 3.2 (Swift 4 in Swift 3 mode) needs TCO workaround

This commit is contained in:
Johannes Weiß committed 2017-06-08 16:10:22 +01:00
1 parent 02ff223eba
commit 2522fa68aa
1 file changed
+1 -1
+1 -1
View File
@@ -44,7 +44,7 @@ final class PendingWrite {
}
}
#if swift(>=4.0)
#if swift(>=3.2)
/* workaround for https://bugs.swift.org/browse/SR-5106 */
func doPendingWriteVectorOperation(pending: PendingWrite?, count: Int, iovecs: UnsafeMutableBufferPointer<IOVector>, _ fn: (UnsafeBufferPointer<IOVector>) -> Int) -> Int {
return withoutActuallyEscaping(fn) { fn in