aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc/objc-runtime-hooks.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-04-18 12:36:29 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-04-26 15:02:40 +0000
commit198f98ec04c9f09f956fee36cfb93957e06fbe7d (patch)
treed8505260d926896c5615f064a28a3d843edb082c /gcc/objc/objc-runtime-hooks.h
parentc630493edcd2ccbef51a5893796f5deecd9d8a0b (diff)
downloadgcc-198f98ec04c9f09f956fee36cfb93957e06fbe7d.zip
gcc-198f98ec04c9f09f956fee36cfb93957e06fbe7d.tar.gz
gcc-198f98ec04c9f09f956fee36cfb93957e06fbe7d.tar.bz2
gccrs: add error state to TypeCheckContextItem and missing copy ctor's
When checking current context we might be in the const or static context which does not have a current function or impl or trait context associated with it. So this allows us to represent the an error state for that case. gcc/rust/ChangeLog: * typecheck/rust-hir-type-check.h: New error state and missing copy implementations * typecheck/rust-typecheck-context.cc (TypeCheckContextItem::TypeCheckContextItem): missing copy ctor (TypeCheckContextItem::operator=): missing copy implementation (TypeCheckContextItem::get_error): new static function (TypeCheckContextItem::is_error): new method (TypeCheckContextItem::get_context_type): handle error state (TypeCheckContextItem::get_defid): handle error state Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/objc/objc-runtime-hooks.h')
0 files changed, 0 insertions, 0 deletions