• Martin Möhrmann's avatar
    cmd/compile: make argument length mismatch in mkcall an error · 8bbae3d5
    Martin Möhrmann authored
    mkcall is used to construct calls to builtin functions.
    
    Instead of silently ignoring any additional arguments to mkcall
    abort compilation with an error.
    
    This protects against accidentally supplying too many arguments to mkcall
    when compiler changes are made.
    
    Change appendslice and copyany to construct calls to
    slicestringcopy and slicecopy explicitly instead of
    relying on the old behavior as a feature.
    
    Change-Id: I3cfe815a57d454a129e3c08aac824f6107779a42
    Reviewed-on: https://go-review.googlesource.com/57770
    Run-TryBot: Martin Möhrmann <moehrmann@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarKeith Randall <khr@golang.org>
    8bbae3d5
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...