[clang] [llvm] [ARM] Fix musttail calls (PR #109943)

Eli Friedman via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 25 13:16:44 PDT 2024


================
@@ -5112,7 +5112,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo &CallInfo,
   RawAddress SRetAlloca = RawAddress::invalid();
   llvm::Value *UnusedReturnSizePtr = nullptr;
   if (RetAI.isIndirect() || RetAI.isInAlloca() || RetAI.isCoerceAndExpand()) {
-    if (IsVirtualFunctionPointerThunk && RetAI.isIndirect()) {
+    if ((IsVirtualFunctionPointerThunk && RetAI.isIndirect()) || IsMustTail) {
----------------
efriedma-quic wrote:

https://github.com/llvm/llvm-project/pull/104795#discussion_r1722204520

https://github.com/llvm/llvm-project/pull/109943


More information about the llvm-commits mailing list