]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: remove useless declaration of llit
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2016 20:37:35 +0000 (12:37 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2016 20:55:18 +0000 (20:55 +0000)
Accidentally added in https://golang.org/cl/20242.

This is in preparation for transformation by an automated tool.

Passes toolstash -cmp.

Update #14473.

Change-Id: I28c637d220df3ccaa8e368bfbea7282a6e66662e
Reviewed-on: https://go-review.googlesource.com/20402
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>

src/cmd/compile/internal/gc/typecheck.go

index 0b8502a764d1b998bf1920b6addb52990707af3a..2d9627eb53c6114eee883e48aa2dae59056f65b4 100644 (file)
@@ -3338,9 +3338,8 @@ func typecheckas2(n *Node) {
        var r *Node
        if cl == cr {
                // easy
-               llit := nodeSeqIterate(n.List)
                lrit := nodeSeqIterate(n.Rlist)
-               for llit = nodeSeqIterate(n.List); !llit.Done(); llit.Next() {
+               for llit := nodeSeqIterate(n.List); !llit.Done(); llit.Next() {
                        if llit.N().Type != nil && lrit.N().Type != nil {
                                *lrit.P() = assignconv(lrit.N(), llit.N().Type, "assignment")
                        }