diff options
author | Philip Herron <herron.philip@googlemail.com> | 2025-03-27 15:15:08 +0000 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-03-31 21:07:17 +0200 |
commit | 3ef5915e5f56c04f2e70638eaa46f0baa2a1c388 (patch) | |
tree | f76ef591b1a7b916f29f1f3406f358a410704fbe /gcc/testsuite/gcc.dg/cpp | |
parent | 5ea9b77d2790177fc3e224140b1b671363f689f2 (diff) | |
download | gcc-3ef5915e5f56c04f2e70638eaa46f0baa2a1c388.zip gcc-3ef5915e5f56c04f2e70638eaa46f0baa2a1c388.tar.gz gcc-3ef5915e5f56c04f2e70638eaa46f0baa2a1c388.tar.bz2 |
gccrs: Give the builtin unit struct an actual locus
This has been a pet peeve of mine for a while because the gimple never
emitted the struct () name properly it was always empty which for record
types they always require a real locus or they dont get a proper name.
gcc/rust/ChangeLog:
* backend/rust-compile-base.cc (HIRCompileBase::unit_expression): pass ctx
* backend/rust-compile-base.h: cant be static
* backend/rust-compile-intrinsic.cc (try_handler_inner): pass ctx
* backend/rust-compile-type.cc
(TyTyResolveCompile::get_unit_type): update to grab the first locus
(TyTyResolveCompile::visit): pass ctx
* backend/rust-compile-type.h: likewise
Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/testsuite/gcc.dg/cpp')
0 files changed, 0 insertions, 0 deletions