• 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
walk.go 95.8 KB