llgo/ssa: Imethod
This commit is contained in:
@@ -560,8 +560,9 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
|
||||
cv := v.Call.Value
|
||||
if mthd := v.Call.Method; mthd != nil {
|
||||
o := p.compileValue(b, cv)
|
||||
fn := b.Imethod(o, v.Call.Method)
|
||||
args := p.compileValues(b, v.Call.Args, fnNormal)
|
||||
ret = b.Icall(o, v.Call.Method, args...)
|
||||
b.Call(fn, args...)
|
||||
break
|
||||
}
|
||||
kind := p.funcKind(cv)
|
||||
|
||||
Reference in New Issue
Block a user