diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-08-05 14:29:19 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-08-05 14:37:41 +0100 |
commit | c86ac620c2bdb852b8078f37b898ab40d96ec0b0 (patch) | |
tree | d0ad3824e02135310865254787603c99b27224f7 /gcc/rust/backend/rust-compile-struct-field-expr.h | |
parent | 8725e324aad3eac0df074e5f0a494b5e3f332a31 (diff) | |
download | gcc-c86ac620c2bdb852b8078f37b898ab40d96ec0b0.zip gcc-c86ac620c2bdb852b8078f37b898ab40d96ec0b0.tar.gz gcc-c86ac620c2bdb852b8078f37b898ab40d96ec0b0.tar.bz2 |
Array index access does not need to unsize to a slice for access
When we define the core code for SliceIndex access its possible for an
array to be fully coerced into a slice DST and follow the normal slice
index access which removes support for GCC -Warray-index checks and
generates unnessecary code for array access.
Fixes #1436
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.h')
0 files changed, 0 insertions, 0 deletions