mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Casting the return value to Span must be done outside withUnsafeBufferPointer, to prevent returning a ~Escapable type from a function without lifetime info. To do this we sort the transformations so that the return value transformation is performed last. There was a bug in the comparison, so the sorting was not always done correctly. rdar://147934170
45 KiB
45 KiB