aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-item.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2025-01-21 17:19:13 +0000
committerArthur Cohen <arthur.cohen@embecosm.com>2025-03-24 13:06:54 +0100
commitaa0255591592df1a94f1956737f30b434962dc99 (patch)
tree1c36be7b3a37b992b189a0c1a78b33827c262d85 /gcc/rust/backend/rust-compile-item.h
parent34ef64d94488c44810b652ed523502b47fb4a46b (diff)
downloadgcc-aa0255591592df1a94f1956737f30b434962dc99.zip
gcc-aa0255591592df1a94f1956737f30b434962dc99.tar.gz
gcc-aa0255591592df1a94f1956737f30b434962dc99.tar.bz2
gccrs: catch missing guard for optional result
When we lookup here it returns an optional which can lead to a crash because it needs a guard if it has a value. gcc/rust/ChangeLog: * backend/rust-compile-resolve-path.cc (HIRCompileBase::query_compile): add guard gcc/testsuite/ChangeLog: * rust/compile/nr2/exclude: these tests now work it seems Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-item.h')
0 files changed, 0 insertions, 0 deletions