Commit df035a8d authored by Ian Lance Taylor's avatar Ian Lance Taylor

cmd/compile: fix bug in vmatch1 list traversal nodeSeq change

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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
parent c69e6869
......@@ -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
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment