ssa: toLLVMFunc by NameValist

This commit is contained in:
visualfc
2024-11-25 13:28:18 +08:00
parent bab5c0589f
commit 4552691aed
3 changed files with 13 additions and 5 deletions

View File

@@ -452,7 +452,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 := sig.Variadic()
hasVArg := hasNameValist(sig)
if hasVArg {
n--
}