[llvm] 6f5ddf6 - GlobalISel: Don't hardcode varargs=false in resultsCompatible
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue May 11 17:31:13 PDT 2021
Author: Matt Arsenault
Date: 2021-05-11T20:22:06-04:00
New Revision: 6f5ddf67319b50664f3f5a4001723454696594b4
URL: https://github.com/llvm/llvm-project/commit/6f5ddf67319b50664f3f5a4001723454696594b4
DIFF: https://github.com/llvm/llvm-project/commit/6f5ddf67319b50664f3f5a4001723454696594b4.diff
LOG: GlobalISel: Don't hardcode varargs=false in resultsCompatible
Added:
Modified:
llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
index 285a1d6a8159..194d824e27d3 100644
--- a/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CallLowering.cpp
@@ -957,12 +957,12 @@ bool CallLowering::resultsCompatible(CallLoweringInfo &Info,
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;
More information about the llvm-commits
mailing list