From: Josh Bleecher Snyder Date: Mon, 20 Jun 2016 15:34:39 +0000 (-0700) Subject: cmd/compile: minor cleanup in mapinit X-Git-Tag: go1.8beta1~1663 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5bddca64a84edae33a8ffaa74abcd3a8c966ea0c;p=gostls13.git cmd/compile: minor cleanup in mapinit Change-Id: I7d58d200f7e8b2c0a6e35371da0dafd9b44e9057 Reviewed-on: https://go-review.googlesource.com/26757 Run-TryBot: Josh Bleecher Snyder Reviewed-by: David Crawshaw Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/compile/internal/gc/sinit.go b/src/cmd/compile/internal/gc/sinit.go index f6ff906999..e073a5fad4 100644 --- a/src/cmd/compile/internal/gc/sinit.go +++ b/src/cmd/compile/internal/gc/sinit.go @@ -974,13 +974,14 @@ func maplit(ctxt int, n *Node, m *Node, init *Nodes) { val = temp(m.Type.Val()) } - setlineno(r.Left) - a = Nod(OAS, key, r.Left) + setlineno(index) + a = Nod(OAS, key, index) a = typecheck(a, Etop) a = walkstmt(a) init.Append(a) - setlineno(r.Right) - a = Nod(OAS, val, r.Right) + + setlineno(value) + a = Nod(OAS, val, value) a = typecheck(a, Etop) a = walkstmt(a) init.Append(a)