swift
30ff21e7 - [silgen] Ensure that the outer cleanup is emitted along failure paths when initializing sub-tuple patterns

Commit
4 years ago
[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
Author
Committer
Parents
Loading