[llvm] [Coroutines][Swift] Remove replaceSwiftErrorOps while cloning (PR #116292)
John McCall via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 13:26:57 PST 2024
rjmccall wrote:
I don't think you can reliably detect when Swift is being used. Clang supports the `swiftcall` calling convention in many common targets, and somebody could call a function that takes a `swifterror` argument from a C++ coroutine. For better or worse, `swifterror` is a generic LLVM IR feature orthogonal to the choice of coroutine ABI, so even if we abstracted out the coroutine ABI lowering details, we'd still need `swifterror` support here.
https://github.com/llvm/llvm-project/pull/116292
More information about the llvm-commits
mailing list