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

via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 04:59:20 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:

I have created other tests for this. Would you suggest putting those tests, along with this change, in a seperate PR?

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


More information about the cfe-commits mailing list