Skip to content

Commit 63fc530

Browse files
Fix lowerCall vararg crash.
1 parent 1a8f429 commit 63fc530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/WebAssembly/GISel/WebAssemblyCallLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,8 +976,8 @@ bool WebAssemblyCallLowering::lowerCall(MachineIRBuilder &MIRBuilder,
976976
if (!Arg.Flags[0].isVarArg()) {
977977
for (unsigned Part = 0; Part < NumParts; ++Part) {
978978
CallInst.addUse(Arg.Regs[Part]);
979-
++NumFixedArgs;
980979
}
980+
++NumFixedArgs;
981981
}
982982
}
983983

0 commit comments

Comments
 (0)