mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
aa8f1d7efd
The patch implements proper sil-combiner handling of `differentiable_function` for cases when extractee has non-trivial ownership. In such casese, it is consumed by the differentiable_function instruction. We must copy the extractee before the consumption point so the copy remains live afterward. Fixes #88816