-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[silgen] Ensure that the outer cleanup is emitted along failure paths…
… when initializing sub-tuple patterns Previously, we would leak in this case along the inner failure path since we had already forwarded the outer cleanup. Instead in this patch, I change the outer cleanup to be persistently active (ensuring that failure paths along the sub-pattern are cleaned up appropriately) and forward it manually afterwards ensuring that we do not /actually/ emit the cleanup along the success path. rdar://81817725
- Loading branch information
1 parent
8e6c109
commit 30ff21e
Showing
2 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters