swift
8079b350 - [IRGen] Put 'ret void' instead of unreachable for non swiftasync cc

Commit
4 years ago
[IRGen] Put 'ret void' instead of unreachable for non swiftasync cc If target doesn't support musttail (e.g. WebAssembly), the function passed to coro.end.async can return control back to the caller. So the frontend should emit 'ret void' instead of unreachable after the coro.end.async intrinsic call to allow such situation. (cherry picked from commit 671ce74e97ed4f69aad0aa71afcc46408f337d12)
Committer
Parents
Loading