diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2024-05-03 19:49:44 +0200 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-17 16:35:25 +0100 |
commit | 2fc05741bbf83d04260308c17320eef5d9e459db (patch) | |
tree | 62ad359ab44057365b417f44040e7bd2d829c2ba /gcc/diagnostic-buffer.h | |
parent | 4dd34b1fd1241afeeb4fa7e6f5848a6c1af5430b (diff) | |
download | gcc-2fc05741bbf83d04260308c17320eef5d9e459db.zip gcc-2fc05741bbf83d04260308c17320eef5d9e459db.tar.gz gcc-2fc05741bbf83d04260308c17320eef5d9e459db.tar.bz2 |
gccrs: Change lookup_hir_path_expr_seg return type
Make the function's return type optional in order to differentiate
between null pointers and missing value.
gcc/rust/ChangeLog:
* util/rust-hir-map.cc (Mappings::insert_hir_path_expr_seg): Change
call site to accomodate the new return type.
(Mappings::lookup_hir_path_expr_seg): Wrap the function's return type
with 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/diagnostic-buffer.h')
0 files changed, 0 insertions, 0 deletions