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
88 B
88 B