Merge pull request #175 from xushiwei/q

cl: _testpy/gcd
This commit is contained in:
xushiwei
2024-05-15 13:33:56 +08:00
committed by GitHub
14 changed files with 314 additions and 61 deletions

View File

@@ -317,7 +317,7 @@ func (p Program) toLLVMTypes(t *types.Tuple, n int) (ret []llvm.Type) {
func (p Program) toLLVMFunc(sig *types.Signature) llvm.Type {
tParams := sig.Params()
n := tParams.Len()
hasVArg := HasVArg(tParams, n)
hasVArg := sig.Variadic()
if hasVArg {
n--
}