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