mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
When performance diagnostics were introduced, typed throws didn't exist so it was not generally possible to have throws anywhere without triggering performance diagnostics. As a short term hack, we disabled checking of `throw` instructions and the basic blocks that terminate in a `throw`. Now that typed throws is available and can be used to eliminate allocations with error handling, remove all of the hacks. We'll now diagnose attempts to throw or catch existential values (e.g., the `any Error` used for untyped throws), but typed throws are fine.
12 KiB
12 KiB