- It should be mapped to LLVM's swifttailcc, which is now available.
- We should make sure we generate a tail call instead of an ordinary call.
Fixes rdar://73762895.
Differential D95984
[CodeGen] Fix codegen for __attribute__((swiftasynccall)). varungandhi-apple on Feb 3 2021, 3:43 PM. Authored by
Details
Fixes rdar://73762895.
Diff Detail
Event TimelineComment Actions I am planning to add more tests, figured it is better to put up the patch sooner rather than later. Comment Actions Okay, seems fine to me.
Comment Actions Add null check for callee; instead of using getFunctionType() directly. Otherwise, it leads to a crash when compiling gtest-all.cc. Comment Actions Use musttail call instead of tail call. (This patch needs to be marked as dependent on another patch which implements proper musttail support, but that is not available yet.)
Comment Actions
|