diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2025-04-16 22:53:18 -0400 |
---|---|---|
committer | CohenArthur <arthur.cohen@embecosm.com> | 2025-04-28 13:14:05 +0000 |
commit | 161e3c684cbe72cc1110687e497de0334b83745c (patch) | |
tree | 9d3513fd7e4111565b30075a0e3f808443c1e9a5 /gcc/loop.c | |
parent | 8166a86ae541c4d26f5aac8bbf51463dd5c0269e (diff) | |
download | gcc-161e3c684cbe72cc1110687e497de0334b83745c.zip gcc-161e3c684cbe72cc1110687e497de0334b83745c.tar.gz gcc-161e3c684cbe72cc1110687e497de0334b83745c.tar.bz2 |
Fix narrowing conversion warnings
Fixes PR#119641
gcc/rust/ChangeLog:
* checks/errors/borrowck/rust-bir-place.h
(IndexVec::size_type): Add.
(IndexVec::MAX_INDEX): Add.
(IndexVec::size): Change the return type to the type of the
internal value used by the index type.
(PlaceDB::lookup_or_add_variable): Use the return value from the
PlaceDB::add_place call.
* checks/errors/borrowck/rust-bir.h
(struct BasicBlockId): Move this definition before the
definition of the struct Function.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/loop.c')
0 files changed, 0 insertions, 0 deletions