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.

Change-Id: I93dd83a59ed5c8df4d51db0319bfd59e099340a7
Reviewed-by: Than McIntosh <>
Reviewed-by: Ian Lance Taylor <>
1 file changed