aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-hir-dump.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-03 19:49:44 +0200
committerP-E-P <32375388+P-E-P@users.noreply.github.com>2024-05-17 15:28:30 +0000
commitd1dad032ded0c9c9cace45d0211ccd68ec6af755 (patch)
tree2e4c511099bf88ff7c8c93388f0ccdaf2318b827 /gcc/rust/hir/rust-hir-dump.cc
parent478c227c864f108a49ffa9bc695c0413e159c15c (diff)
downloadgcc-d1dad032ded0c9c9cace45d0211ccd68ec6af755.zip
gcc-d1dad032ded0c9c9cace45d0211ccd68ec6af755.tar.gz
gcc-d1dad032ded0c9c9cace45d0211ccd68ec6af755.tar.bz2
Change lookup_hir_path_expr_seg return type
Make the function's return type optional in order to differentiate between null pointers and missing value. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_path_expr_seg): Change call site to accomodate the new return type. (Mappings::lookup_hir_path_expr_seg): Wrap the function's return type with an optional. * 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/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions