aboutsummaryrefslogtreecommitdiff
path: root/gcc/fold-const-call.h
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-07-31 12:31:58 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:32 +0100
commit90ee631428f0af1d91ee297ea114755d7f0563c7 (patch)
treebef8bee5dbca0295abeaae6817edaa0e81853cfe /gcc/fold-const-call.h
parentde8bc8f9bc03230f124802c4dd0a42f79796a770 (diff)
downloadgcc-90ee631428f0af1d91ee297ea114755d7f0563c7.zip
gcc-90ee631428f0af1d91ee297ea114755d7f0563c7.tar.gz
gcc-90ee631428f0af1d91ee297ea114755d7f0563c7.tar.bz2
gccrs: Change trait getter to return references
Having copy and any other constructor stuff might lead to a breakage in the future where the node id differs due to a newly constructed SimplePath node. This change will allow us to assert the NodeId is from the ast and not any copy made in between. gcc/rust/ChangeLog: * ast/rust-ast.cc (Attribute::get_traits_to_derive): Change return type to a vector of references. * ast/rust-ast.h: Update constructor. * expand/rust-expand-visitor.cc (ExpandVisitor::expand_inner_stmts): Update function call. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'gcc/fold-const-call.h')
0 files changed, 0 insertions, 0 deletions