aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-03 20:08:14 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-05-17 15:28:30 +0000
commit1746979fc55534bd8a2b26ac6d9fdf6b5fdca66e (patch)
tree854d10ad163ba6bb11fcd2a49d5f78595bec6b60 /gcc/rust/hir
parent1e6a3ee55ed907f6e71e6fccbd872b6f80e8298e (diff)
downloadgcc-1746979fc55534bd8a2b26ac6d9fdf6b5fdca66e.zip
gcc-1746979fc55534bd8a2b26ac6d9fdf6b5fdca66e.tar.gz
gcc-1746979fc55534bd8a2b26ac6d9fdf6b5fdca66e.tar.bz2
Change lookup_hir_type return type with an optional
Wrap the function's return type with an optional in order to tell appart a null pointer from a missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_type): Change call site to accomodate the new return type. (Mappings::lookup_hir_type): Change the function's return type. * util/rust-hir-map.h: Update the function's prototype. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/rust/hir')
0 files changed, 0 insertions, 0 deletions