Skip to content

Commit f72afc8

Browse files
authored
Merge pull request #34519 from jckarter/async-sil-tweaks
Async sil tweaks
2 parents fd3048a + 4eb6859 commit f72afc8

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Diff for: lib/SIL/IR/OperandOwnership.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ CONSTANT_OWNERSHIP_INST(Owned, MustBeInvalidated, DestroyValue)
176176
CONSTANT_OWNERSHIP_INST(Owned, MustBeInvalidated, EndLifetime)
177177
CONSTANT_OWNERSHIP_INST(Owned, MustBeInvalidated, BeginCOWMutation)
178178
CONSTANT_OWNERSHIP_INST(Owned, MustBeInvalidated, EndCOWMutation)
179-
CONSTANT_OWNERSHIP_INST(Owned, MustBeLive, AwaitAsyncContinuation)
179+
CONSTANT_OWNERSHIP_INST(None, MustBeLive, AwaitAsyncContinuation)
180180
CONSTANT_OWNERSHIP_INST(None, MustBeLive, AbortApply)
181181
CONSTANT_OWNERSHIP_INST(None, MustBeLive, AddressToPointer)
182182
CONSTANT_OWNERSHIP_INST(None, MustBeLive, BeginAccess)

Diff for: lib/SIL/IR/ValueOwnership.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ CONSTANT_OWNERSHIP_INST(Unowned, RawPointerToRef)
149149
CONSTANT_OWNERSHIP_INST(Unowned, ObjCProtocol)
150150
CONSTANT_OWNERSHIP_INST(Unowned, ValueToBridgeObject)
151151
CONSTANT_OWNERSHIP_INST(None, GetAsyncContinuation)
152-
CONSTANT_OWNERSHIP_INST(Unowned, GetAsyncContinuationAddr)
152+
CONSTANT_OWNERSHIP_INST(None, GetAsyncContinuationAddr)
153153
CONSTANT_OWNERSHIP_INST(None, ThinToThickFunction)
154154
#undef CONSTANT_OWNERSHIP_INST
155155

Diff for: stdlib/public/Concurrency/PartialAsyncTask.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ public struct PartialAsyncTask {
2020
public func run() { }
2121
}
2222

23-
23+
@frozen
2424
public struct UnsafeContinuation<T> {
2525
private var context: UnsafeRawPointer
2626

2727
public func resume(_: T) { }
2828
}
2929

30+
@frozen
3031
public struct UnsafeThrowingContinuation<T> {
3132
private var context: UnsafeRawPointer
3233

0 commit comments

Comments
 (0)