Skip to content

Commit 7ac1108

Browse files
author
Dave Abrahams
committed
[stdlib] Minor fixups for SE-0118 implementation
1 parent a68f648 commit 7ac1108

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/private/StdlibUnittest/RaceTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import Glibc
4747
#if _runtime(_ObjC)
4848
import ObjectiveC
4949
#else
50-
func autoreleasepool(_ code: @noescape () -> Void) {
50+
func autoreleasepool(invoking code: @noescape () -> Void) {
5151
// Native runtime does not have autorelease pools. Execute the code
5252
// directly.
5353
code()

stdlib/private/StdlibUnittestFoundationExtras/StdlibUnittestFoundationExtras.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public func autoreleasepoolIfUnoptimizedReturnAutoreleased(
6868
invoking body: @noescape () -> Void
6969
) {
7070
#if arch(i386) && (os(iOS) || os(watchOS))
71-
autoreleasepool(body)
71+
autoreleasepool(invoking: body)
7272
#else
7373
body()
7474
#endif

0 commit comments

Comments
 (0)