mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Currently, CopyPropagation only canonicalizes defs that are "canonical", that is, the root of the copy_value tree. When that canonical def is lexical, however, the canonicalization respects deinit barriers. But copies of lexical values are not themselves lexical, so their lifetimes can be shortened without respect to deinit barriers. Here, immediate copies of lexical values are canonicalized before the lexical values themselves are. rdar://107197935
24 KiB
24 KiB