diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-02-03 15:14:01 +0000 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2025-02-03 19:20:22 +0000 |
commit | 9449c935b39d963f62be2a41df91671fc163685b (patch) | |
tree | 778ce0df463a43e625e31b9cf46cbd933c06102d /gcc/rust/expand/rust-macro-builtins.cc | |
parent | 668c3bf7b7b45f8cea7a09515b6420cece877881 (diff) | |
download | gcc-9449c935b39d963f62be2a41df91671fc163685b.zip gcc-9449c935b39d963f62be2a41df91671fc163685b.tar.gz gcc-9449c935b39d963f62be2a41df91671fc163685b.tar.bz2 |
gccrs: Fix ICE when fn_once and fn_once_output lang item is not defined
We needed to check for the optional has a value here or not it leads to an
ICE.
gcc/rust/ChangeLog:
* typecheck/rust-tyty.cc (ClosureType::setup_fn_once_output): add checks for lang items
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/expand/rust-macro-builtins.cc')
0 files changed, 0 insertions, 0 deletions