aboutsummaryrefslogtreecommitdiff
path: root/gcc/cppdefault.cc
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2024-05-03 20:17:16 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-17 16:35:25 +0100
commit8f8d6d1a03ecca39928f98b8045e278bee665b78 (patch)
treee3630f1fb29f81763b0ecbfc873373cf121c9603 /gcc/cppdefault.cc
parentffa5f60ad9051e83fdacca631126c347970e1d52 (diff)
downloadgcc-8f8d6d1a03ecca39928f98b8045e278bee665b78.zip
gcc-8f8d6d1a03ecca39928f98b8045e278bee665b78.tar.gz
gcc-8f8d6d1a03ecca39928f98b8045e278bee665b78.tar.bz2
gccrs: Change lookup_hir_smt's return type with optional
Wrap the function's return type within an optional in order to differentiate missing values from null pointers. gcc/rust/ChangeLog: * util/rust-hir-map.cc (Mappings::insert_hir_stmt): Change call site to accomodate new return type. (Mappings::lookup_hir_stmt): Change the function's return type. (Mappings::resolve_nodeid_to_stmt): Adapt call site to new 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/cppdefault.cc')
0 files changed, 0 insertions, 0 deletions