diff options
author | Philip Herron <philip.herron@embecosm.com> | 2022-10-14 14:00:16 +0100 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2022-10-14 14:00:16 +0100 |
commit | e8c82076bc6aff3d8df4da228dfdb617ae7372e2 (patch) | |
tree | 5e4ea3af4fbc14d79df3445fe6955053b89fbe1f /gcc/rust/backend/rust-compile-expr.h | |
parent | c85492954ded963d937de1fa8731be0718d117eb (diff) | |
download | gcc-e8c82076bc6aff3d8df4da228dfdb617ae7372e2.zip gcc-e8c82076bc6aff3d8df4da228dfdb617ae7372e2.tar.gz gcc-e8c82076bc6aff3d8df4da228dfdb617ae7372e2.tar.bz2 |
Refactor TraitResolver to not require a visitor
We used a visitor to dispatch the HIR::Item so that we could cast it directly to an HIR::Trait and then check for nullptr if it failed. This
patch changes this to simply use our new enum item_type_kind to switch so
we can directly static_cast.
Diffstat (limited to 'gcc/rust/backend/rust-compile-expr.h')
0 files changed, 0 insertions, 0 deletions