Files
swift-mirror/test/SILGen/async_vtable_thunk.swift
Doug Gregor 43f1581c4b Emit a separate vtable entry + override thunk for async overrides that drop throws
Unlike with synchronous functions, an async 'throws' function and an
async non-throwing function are not ABI-compatible. This would lead to
an ABI mismatch and runtime crash when overriding an `async throws`
function with an `async` one. Deal with this ABI incompatibility by
producing an appropriate thunk.

Fixes SR-15766 / rdar://problem/88035174.
2022-01-25 11:56:24 -08:00

1.2 KiB