mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Narrowly fix a long-standing bug where destroy_addrs would be hoisted into read access scopes, leaving the scope as a read despite the fact that it modifies memory. This is a problem for utilities which expect access scopes to provide correct summaries. Do this by refusing to fold into access scopes which are marked `[read]`. In a follow-up, we can reenable this folding, promoting each access scope to a modify. Doing so requires checking that there are no access scopes which overlap with any of the access scopes which would be promoted to modify. rdar://154407327
44 KiB
44 KiB