mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Calling `cloneRecursively` from `SpecializationInfo.cloneClosures` requires the callee having ownership info. Otherwise, the cloner uses `recordFoldedValue` instead of `recordClonedInstruction`, and `postProcess` hook is not called, which leads to an assertion failure in `BridgedClonerImpl::cloneInst`.