swift
02a12d41 - [move-only] Make sure to treat ref_element_addr mutable address accesses similar to inout.

Commit
2 years ago
[move-only] Make sure to treat ref_element_addr mutable address accesses similar to inout. I also slightly changed the codegen around where we insert the mark_must_check. Specifically, before we would emit the mark_must_check directly on the ref_element_addr and then insert the access. This had the unfortunate effect that we would hoist any destroy_addr that were actually needed out of the access scope. Rather than do that, I now insert the mark_must_check on the access itself. This results in the destroy_addr being within the scope (like the mark_must_check itself). rdar://105910066
Author
Committer
Parents
Loading