1
0
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:
Alan Donovan 2017-02-07 14:22:38 -05:00
parent f5bb18ad35
commit 1977f1cf7d

View File

@ -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]