aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-05-04 13:48:03 +0100
committerPhilip Herron <philip.herron@embecosm.com>2022-05-05 11:43:40 +0100
commitf5bceb679420b999aa63c1b34dd0e0075cf9c5fd (patch)
treef6ad62677bccf0ee131b9a73db11d016149fce6e /gcc/rust/backend/rust-compile-expr.h
parent285aabdd3b2d8ee7c158eee34241ba52a31b19d3 (diff)
downloadgcc-f5bceb679420b999aa63c1b34dd0e0075cf9c5fd.zip
gcc-f5bceb679420b999aa63c1b34dd0e0075cf9c5fd.tar.gz
gcc-f5bceb679420b999aa63c1b34dd0e0075cf9c5fd.tar.bz2
Fix size used in unsized adjustments
When we coerce from an array to a slice we take the full capacity of the array as the size to the FatPtr slice object but this was off by one. This The TYPE_MAX_VALUE is not the correct method of accessing this but instead it needs to take into account other values to get the correct HOST_WIDE_INT
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions