@@ -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--
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user