]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: fix bug in vmatch1 list traversal nodeSeq change
authorIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2016 19:16:19 +0000 (11:16 -0800)
committerIan Lance Taylor <iant@golang.org>
Tue, 8 Mar 2016 20:00:03 +0000 (20:00 +0000)
Bug accidentally inserted in https://golang.org/cl/20210.  Doesn't seem
to make a difference, but restore original code anyhow.

Update #14473.

Change-Id: I9cf87987ff158e27c7231027819317cdde8c132c
Reviewed-on: https://go-review.googlesource.com/20401
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/walk.go

index 52d35ceb2b6e17ab7ef46605976423c06fcb3bf5..81f2e7e6065d17b2f84cc2ec9529f4ffe83c94b9 100644 (file)
@@ -2578,7 +2578,7 @@ func vmatch1(l *Node, r *Node) bool {
        if vmatch1(l.Right, r) {
                return true
        }
-       for it := nodeSeqIterate(l); !it.Done(); it.Next() {
+       for it := nodeSeqIterate(l.List); !it.Done(); it.Next() {
                if vmatch1(it.N(), r) {
                        return true
                }