• Daniel Martí's avatar
    cmd/compile: simplify some declarations · 270a789c
    Daniel Martí authored
    Reduce the scope of some. Also remove vars that were simply the index or
    the value in a range statement. While at it, remove a var that was
    exactly the length of a slice.
    
    Also replaced 'bad' with a more clear 'errored' of type bool, and
    renamed a single-char name with a comment to a name that is
    self-explanatory.
    
    And removed a few unnecessary Index calls within loops.
    
    Passes toolstash -cmp on std cmd.
    
    Change-Id: I26eee5f04e8f7e5418e43e25dca34f89cca5c80a
    Reviewed-on: https://go-review.googlesource.com/70930
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    270a789c
Name
Last commit
Last update
..
amd64 Loading commit data...
arm Loading commit data...
arm64 Loading commit data...
gc Loading commit data...
mips Loading commit data...
mips64 Loading commit data...
ppc64 Loading commit data...
s390x Loading commit data...
ssa Loading commit data...
syntax Loading commit data...
test Loading commit data...
types Loading commit data...
x86 Loading commit data...