Merge pull request #298 from visualfc/eface

ssa: interface equal
This commit is contained in:
xushiwei
2024-06-12 20:29:15 +08:00
committed by GitHub
15 changed files with 6220 additions and 355 deletions

View File

@@ -789,6 +789,9 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
t := v.Type()
x := p.compileValue(b, v.X)
ret = b.ChangeInterface(p.prog.Type(t, llssa.InGo), x)
case *ssa.Field:
x := p.compileValue(b, v.X)
ret = b.Field(x, v.Field)
default:
panic(fmt.Sprintf("compileInstrAndValue: unknown instr - %T\n", iv))
}