llgo/ssa: unsafeInterface; runtime.PointerTo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user