[clang] [llvm] [ARM] musttail fixes (PR #102896)

via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 19 08:11:09 PDT 2024


================
@@ -5085,7 +5085,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 || IsMustTail) && RetAI.isIndirect()) {
----------------
kiran-isaac wrote:

Have now done so: #104795. Have requested you as a reviewer

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


More information about the cfe-commits mailing list