cl: interface support __llgo_va_list

This commit is contained in:
visualfc
2025-09-09 13:20:01 +08:00
parent 89af430329
commit fd17a43ade
6 changed files with 451 additions and 22 deletions

View File

@@ -506,7 +506,11 @@ func (p *context) call(b llssa.Builder, act llssa.DoAction, call *ssa.CallCommon
if mthd := call.Method; mthd != nil {
o := p.compileValue(b, cv)
fn := b.Imethod(o, mthd)
args := p.compileValues(b, call.Args, fnNormal)
hasVArg := fnNormal
if llssa.HasNameValist(call.Signature()) {
hasVArg = fnHasVArg
}
args := p.compileValues(b, call.Args, hasVArg)
ret = b.Do(act, fn, args...)
return
}