mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
In this commit I added a more convenient API for doing this sort of operation. Specifically: SILBuilder::emitScopedBorrowOperation. This performs either a load_borrow or begin_borrow, then calls a user provided closure, and finally inserts the end_borrow after the scope has closed. rdar://43398898
5 lines
88 B
Plaintext
5 lines
88 B
Plaintext
|
|
module ClosureLifetimeFixupObjC {
|
|
header "closure_lifetime_fixup_objc.h"
|
|
export *
|
|
} |