diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 19:40:18 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 478c227c864f108a49ffa9bc695c0413e159c15c (patch) | |
tree | b0907cd8f9ad70bfe4c1ea46076788a5a5aa4035 /gcc/rust/hir/rust-hir-dump.cc | |
parent | 1fcb7198e46212a1689e190aca0e4803d9762e68 (diff) | |
download | gcc-478c227c864f108a49ffa9bc695c0413e159c15c.zip gcc-478c227c864f108a49ffa9bc695c0413e159c15c.tar.gz gcc-478c227c864f108a49ffa9bc695c0413e159c15c.tar.bz2 |
Change lookup_hir_expr return type to optional
Wrap the function's return type with an optional in order to
differentiate missing values from null pointers.
gcc/rust/ChangeLog:
* backend/rust-mangle-v0.cc (v0_path): Adapt call site to new returned
type.
* util/rust-hir-map.cc (Mappings::lookup_hir_expr): 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/rust-hir-dump.cc')
0 files changed, 0 insertions, 0 deletions