diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 20:55:01 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 36518ef25d5f3d625ff9501f66d8c300f076e748 (patch) | |
tree | 41a635c7e880f124f0390586ed3b496dd3739b5b /gcc/rust/hir/rust-hir-dump.cc | |
parent | e956f3a7bbf0d1e31d15bc46bd3451172a9b8869 (diff) | |
download | gcc-36518ef25d5f3d625ff9501f66d8c300f076e748.zip gcc-36518ef25d5f3d625ff9501f66d8c300f076e748.tar.gz gcc-36518ef25d5f3d625ff9501f66d8c300f076e748.tar.bz2 |
Change lookup_hir_pattern return type
Wrap the function's return type within an optional in order to
differentiate between a null pointer and a missing value.
gcc/rust/ChangeLog:
* util/rust-hir-map.cc (Mappings::insert_hir_pattern): Change call site
in order to accomodate new return type.
(Mappings::lookup_hir_pattern): 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