• Josh Bleecher Snyder's avatar
    cmd/compile: add Type.SetNumElem · 5dd129bc
    Josh Bleecher Snyder authored
    This removes all access to Type.Bound
    from outside type.go.
    
    Update sinit to make a new type rather than
    copy and mutate.
    
    Update bimport to create a new slice type
    instead of mutating TDDDFIELD.
    These are rare, so the extra allocs are nominal.
    
    I’m not happy about having a setter,
    but it appears the most practical route
    forward at the moment, and it only has a few uses.
    
    Passes toolstash -cmp.
    
    Change-Id: I174f07c8f336afc656904bde4bdbde4f3ef0db96
    Reviewed-on: https://go-review.googlesource.com/21423
    Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    5dd129bc
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...