compiler: use int type for len & cap in slice value
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Jan 2019 00:05:12 +0000 (00:05 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 9 Jan 2019 00:05:12 +0000 (00:05 +0000)
commitfc490e0478f67c12e9662c177fed87f47456cea5
tree28ec169a2fc7627e5f036ae29b2d01135b501992
parent52af30719fde1430bd4c4a686fe4375be1a7b0cf
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

From-SVN: r267745
gcc/go/gofrontend/MERGE
gcc/go/gofrontend/expressions.cc