mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When the called closure throws an error, it needs to clean up the buffer. This means that the buffer is uninitialized at this point. We need an `end_lifetime` so that the move-only checker doesn't insert a wrong `destroy_addr` because it thinks that the buffer is initialized. Fixes a mis-compile. rdar://151461109
10 KiB
10 KiB