[clang] [libc] [llvm] [NVPTX] Implement variadic functions using IR lowering (PR #96015)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 12 15:05:58 PDT 2024
================
@@ -203,8 +203,12 @@ ABIArgInfo NVPTXABIInfo::classifyArgumentType(QualType Ty) const {
void NVPTXABIInfo::computeInfo(CGFunctionInfo &FI) const {
if (!getCXXABI().classifyReturnType(FI))
FI.getReturnInfo() = classifyReturnType(FI.getReturnType());
+
+ unsigned ArgumentsCount = 0;
for (auto &I : FI.arguments())
- I.info = classifyArgumentType(I.type);
+ I.info = ArgumentsCount++ < FI.getNumRequiredArgs()
----------------
jhuber6 wrote:
Good point, done.
https://github.com/llvm/llvm-project/pull/96015
More information about the cfe-commits
mailing list