diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 20:08:14 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:25 +0100 |
commit | ffa5f60ad9051e83fdacca631126c347970e1d52 (patch) | |
tree | 379740a98f6415c314b19a2c98c8c9105e1069e7 /gcc/rust/backend | |
parent | c0b38c2aa57b02ceef7925442ae56404d7a20211 (diff) | |
download | gcc-ffa5f60ad9051e83fdacca631126c347970e1d52.zip gcc-ffa5f60ad9051e83fdacca631126c347970e1d52.tar.gz gcc-ffa5f60ad9051e83fdacca631126c347970e1d52.tar.bz2 |
gccrs: Change lookup_hir_type return type with an optional
Wrap the function's return type with an optional in order to tell
appart a null pointer from a missing value.
gcc/rust/ChangeLog:
* util/rust-hir-map.cc (Mappings::insert_hir_type): Change call site
to accomodate the new return type.
(Mappings::lookup_hir_type): 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/backend')
0 files changed, 0 insertions, 0 deletions