diff options
| author | Martin Möhrmann <moehrmann@google.com> | 2017-09-03 08:20:57 +0200 |
|---|---|---|
| committer | Martin Möhrmann <moehrmann@google.com> | 2017-09-12 05:50:54 +0000 |
| commit | 137e4a6c63e8688cba34df7dad81b45f0aaa500c (patch) | |
| tree | 391ea178fd326029bfa5167345768b5797d9fc08 /src/path | |
| parent | 78c4dc37097fa98f73de02ffe1709b776a78354d (diff) | |
| download | go-137e4a6c63e8688cba34df7dad81b45f0aaa500c.tar.xz | |
cmd/compile: improve single blank variable handling in walkrange
Refactor walkrange to treat "for _ = range a" as "for range a".
This avoids generating some later discarded nodes in the compiler.
Passes toolstash -cmp.
Change-Id: Ifb2e1ca3b8519cbb67e8ad5aad514af9d18f1ec4
Reviewed-on: https://go-review.googlesource.com/61017
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/path')
0 files changed, 0 insertions, 0 deletions
