mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We were waiting to delete old apply / try_apply instructions until after fully specializing all the apply / try_apply in the function. This is problematic when we have a recursive call and specializing the function that we're currently processing, since we end up cloning the function with the old apply / try_apply present. Rather than doing this, clean up the old apply / try_apply immediately after processing each one. Resolves SR-1114 / rdar://problem/25455308.
4.1 KiB
4.1 KiB