mirror of
https://github.com/apple/swift.git
synced 2026-06-27 12:25:55 +02:00
a4366f63e1
This adds support for safe wrappers on imported functions returning a ~Escapable value. This is only done if there is lifetime information for the return value, as the wrapper will always have a lifetime error otherwise. __lifetimebound is also ignored *unless* the return value is ~Escapable (or will be transformed to a Span), since lifetime info for an Escapable return value is an error. To enable testing this it also adds merging of lifetime annotations from the underlying funciton and the extra info added by the macro. rdar://157884394