diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 20:17:16 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 0e7cff81b25b43a7a94de591ea03484e60334879 (patch) | |
tree | 36a82e90396e00c40d53dcad05494833d085f1f3 /gcc/rust/hir/rust-hir-dump.cc | |
parent | 1746979fc55534bd8a2b26ac6d9fdf6b5fdca66e (diff) | |
download | gcc-0e7cff81b25b43a7a94de591ea03484e60334879.zip gcc-0e7cff81b25b43a7a94de591ea03484e60334879.tar.gz gcc-0e7cff81b25b43a7a94de591ea03484e60334879.tar.bz2 |
Change lookup_hir_smt's return type with optional
Wrap the function's return type within an optional in order to
differentiate missing values from null pointers.
gcc/rust/ChangeLog:
* util/rust-hir-map.cc (Mappings::insert_hir_stmt): Change call site
to accomodate new return type.
(Mappings::lookup_hir_stmt): Change the function's return type.
(Mappings::resolve_nodeid_to_stmt): Adapt call site to new 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/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions