• Daniel Martí's avatar
    cmd/compile: use more range fors in gc · 02798ed9
    Daniel Martí authored
    Slightly simplifies the code. Made sure to exclude the cases that would
    change behavior, such as when the iterated value is a string, when the
    index is modified within the body, or when the slice is modified.
    
    Also checked that all the elements are of pointer type, to avoid the
    corner case where non-pointer types could be copied by mistake.
    
    Change-Id: Iea64feb2a9a6a4c94ada9ff3ace40ee173505849
    Reviewed-on: https://go-review.googlesource.com/100557
    Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
    Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
    02798ed9
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...