diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-04-25 15:28:32 +0200 |
---|---|---|
committer | P-E-P <32375388+P-E-P@users.noreply.github.com> | 2024-05-17 15:28:30 +0000 |
commit | 9af30ca752f66063ce199d94e374bb9c7db4e65c (patch) | |
tree | bd1d17a5d89c35cf9577f67c4d10796cc7390435 /gcc/tree-iterator.cc | |
parent | 6dbaa5dbfbaac28c96f0ecdc62a8d8479fcf6891 (diff) | |
download | gcc-9af30ca752f66063ce199d94e374bb9c7db4e65c.zip gcc-9af30ca752f66063ce199d94e374bb9c7db4e65c.tar.gz gcc-9af30ca752f66063ce199d94e374bb9c7db4e65c.tar.bz2 |
Change return type for lookup_hir_impl_block
Change the return type to an optiona. This allows to differentiate
between missing hir impl block and null pointers.
gcc/rust/ChangeLog:
* typecheck/rust-type-util.cc (query_type): Change call to the function
in order to accomodate the new return type.
* util/rust-hir-map.cc (Mappings::lookup_hir_impl_block): Change the
function's return type to 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/tree-iterator.cc')
0 files changed, 0 insertions, 0 deletions