mirror of
https://github.com/golang/go
synced 2024-11-20 01:14:40 -07:00
cmd/internal/obj/arm64: delete needless closure in for claus
A residue of the automatic translation, this closure is easily rewritten to a simpler, smaller, and faster construct. Discovered while analyzing #10269, which I still plan to fix. Change-Id: I76b12290280d81880c446b4cf75da633a94482d4 Reviewed-on: https://go-review.googlesource.com/8270 Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
73c026e6fe
commit
6ca91d264f
@ -361,7 +361,7 @@ loop:
|
|||||||
if p.Mark&FOLL != 0 {
|
if p.Mark&FOLL != 0 {
|
||||||
i = 0
|
i = 0
|
||||||
q = p
|
q = p
|
||||||
for ; i < 4; (func() { i++; q = q.Link })() {
|
for ; i < 4; i, q = i+1, q.Link {
|
||||||
if q == *last || q == nil {
|
if q == *last || q == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user