cl: compile ssa.Field
This commit is contained in:
@@ -779,6 +779,9 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
|
|||||||
t := v.Type()
|
t := v.Type()
|
||||||
x := p.compileValue(b, v.X)
|
x := p.compileValue(b, v.X)
|
||||||
ret = b.ChangeInterface(p.prog.Type(t, llssa.InGo), 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:
|
default:
|
||||||
panic(fmt.Sprintf("compileInstrAndValue: unknown instr - %T\n", iv))
|
panic(fmt.Sprintf("compileInstrAndValue: unknown instr - %T\n", iv))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user