[PATCH] D101963: GlobalISel: Don't hardcode varargs=false in resultsCompatible

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 5 17:27:05 PDT 2021


arsenm created this revision.
arsenm added reviewers: aemerson, paquette, bogner.
Herald added subscribers: hiraditya, rovka.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.

https://reviews.llvm.org/D101963

Files:
  llvm/lib/CodeGen/GlobalISel/CallLowering.cpp


Index: llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
===================================================================
--- llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
+++ llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
@@ -954,12 +954,12 @@
     return true;
 
   SmallVector<CCValAssign, 16> ArgLocs1;
-  CCState CCInfo1(CalleeCC, false, MF, ArgLocs1, F.getContext());
+  CCState CCInfo1(CalleeCC, Info.IsVarArg, MF, ArgLocs1, F.getContext());
   if (!determineAssignments(CalleeAssigner, InArgs, CCInfo1))
     return false;
 
   SmallVector<CCValAssign, 16> ArgLocs2;
-  CCState CCInfo2(CallerCC, false, MF, ArgLocs2, F.getContext());
+  CCState CCInfo2(CallerCC, F.isVarArg(), MF, ArgLocs2, F.getContext());
   if (!determineAssignments(CallerAssigner, InArgs, CCInfo2))
     return false;
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101963.343251.patch
Type: text/x-patch
Size: 795 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210506/ccef866e/attachment.bin>


More information about the llvm-commits mailing list