]> git.ipfire.org Git - thirdparty/gcc.git/commit
compiler: use int type for len & cap in slice value
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jan 2019 00:05:12 +0000 (00:05 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 9 Jan 2019 00:05:12 +0000 (00:05 +0000)
commitf81232c1269c70864309c4714d8caa6e925a18ff
tree28ec169a2fc7627e5f036ae29b2d01135b501992
parent9996d5d00591801707df8ff73766bcb99fc69269
compiler: use int type for len & cap in slice value

    Slice value expression has backend type a struct of a pointer and
    two ints. Make sure the len and cap are converted to int when
    creating slice value expression.

    Reviewed-on: https://go-review.googlesource.com/c/156897

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267745 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc