[PATCH] D95984: [CodeGen] Fix codegen for __attribute__((swiftasynccall)).
John McCall via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 24 21:34:59 PST 2021
rjmccall added a comment.
Okay, seems fine to me.
================
Comment at: clang/lib/CodeGen/CGStmt.cpp:1156
+ CallingConv::CC_SwiftAsync)) {
+ auto CI = cast<llvm::CallInst>(&Builder.GetInsertBlock()->back());
+ CI->setTailCallKind(llvm::CallInst::TCK_Tail);
----------------
Hmm. I guess this should work in any situation where we can successfully actually do a tail call.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95984/new/
https://reviews.llvm.org/D95984
More information about the cfe-commits
mailing list