llgo/ssa: unsafeInterface; runtime.PointerTo

This commit is contained in:
xushiwei
2024-05-27 08:07:34 +08:00
parent 12b0d81dda
commit 165a99fd83
8 changed files with 220 additions and 89 deletions

View File

@@ -558,6 +558,12 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
switch v := iv.(type) {
case *ssa.Call:
cv := v.Call.Value
if mthd := v.Call.Method; mthd != nil {
o := p.compileValue(b, cv)
args := p.compileValues(b, v.Call.Args, fnNormal)
ret = b.Icall(o, v.Call.Method, args...)
break
}
kind := p.funcKind(cv)
if kind == fnIgnore {
return