mirror of
https://github.com/golang/go
synced 2024-10-05 16:41:21 -06:00
[dev.ssa] cmd/compile: implement OEFACE
Change-Id: I32953c4e1d82795bacba9eb94d65cd2e26bfeb87 Reviewed-on: https://go-review.googlesource.com/14339 Reviewed-by: Keith Randall <khr@golang.org> Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
e22ae879d3
commit
1792b36310
@ -1700,6 +1700,11 @@ func (s *state) expr(n *Node) *ssa.Value {
|
||||
a := s.expr(n.Left)
|
||||
return s.newValue1(ssa.OpITab, n.Type, a)
|
||||
|
||||
case OEFACE:
|
||||
tab := s.expr(n.Left)
|
||||
data := s.expr(n.Right)
|
||||
return s.newValue2(ssa.OpIMake, n.Type, tab, data)
|
||||
|
||||
case OSLICESTR:
|
||||
// Evaluate the string once.
|
||||
str := s.expr(n.Left)
|
||||
|
Loading…
Reference in New Issue
Block a user