]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: use t.Key() instead of t.Down
authorJosh Bleecher Snyder <josharian@gmail.com>
Tue, 29 Mar 2016 04:28:54 +0000 (21:28 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 29 Mar 2016 05:08:43 +0000 (05:08 +0000)
This was the only unconverted instance.

Change-Id: Ic0ba75824614fcd1e055316e62e26acd06801dd1
Reviewed-on: https://go-review.googlesource.com/21247
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/sinit.go

index 6476f94a1511c0e83993ebd11039c7e45f328f57..71b54192c9827d9fb07e7ca1499b3f63a93c4fcb 100644 (file)
@@ -859,7 +859,7 @@ func maplit(ctxt int, n *Node, var_ *Node, init *Nodes) {
        if b != 0 {
                // build type [count]struct { a Tindex, b Tvalue }
                t := n.Type
-               tk := t.Down
+               tk := t.Key()
                tv := t.Type
 
                syma := Lookup("a")