mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The lifetime of yielded values always end at the end_apply. This is required because a yielded address is non-aliasing inside the begin/end_apply scope, but might be aliasing after the end_apply. For example, if the callee yields an `ref_element_addr` (which is encapsulated in a begin/end_access). Therefore, even if the callee does not write anything, the effects must be "read" and "write". Fixes a SIL verifier error rdar://147601749