mirror of
https://github.com/golang/go
synced 2024-11-18 22:44:48 -07:00
go/ssa/interp: remove old TODO
Change-Id: Ia518721769048a5f7413eb90265cc27128cc9c10 Reviewed-on: https://go-review.googlesource.com/36537 Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
f5bb18ad35
commit
1977f1cf7d
@ -314,9 +314,7 @@ func visitInstr(fr *frame, instr ssa.Instruction) continuation {
|
||||
fr.env[instr] = fr.get(instr.Iter).(iter).next()
|
||||
|
||||
case *ssa.FieldAddr:
|
||||
x := fr.get(instr.X)
|
||||
// FIXME wrong! &global.f must not change if we do *global = zero!
|
||||
fr.env[instr] = &(*x.(*value)).(structure)[instr.Field]
|
||||
fr.env[instr] = &(*fr.get(instr.X).(*value)).(structure)[instr.Field]
|
||||
|
||||
case *ssa.Field:
|
||||
fr.env[instr] = fr.get(instr.X).(structure)[instr.Field]
|
||||
|
Loading…
Reference in New Issue
Block a user