aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorbadumbatish <tanghocle456@gmail.com>2024-08-04 12:43:09 -0700
committerCohenArthur <arthur.cohen@embecosm.com>2024-08-29 12:58:54 +0000
commit369b51527a10c503812695586418bd14b32f6fa5 (patch)
tree4cf73d2415cec8cb91429c50659b7876965b95f6 /gcc
parent250164446381ea0421960da0dbf1286b32cfec30 (diff)
downloadgcc-369b51527a10c503812695586418bd14b32f6fa5.zip
gcc-369b51527a10c503812695586418bd14b32f6fa5.tar.gz
gcc-369b51527a10c503812695586418bd14b32f6fa5.tar.bz2
Add running cicd 32bit
ChangeLog: * .github/alpine_32bit_log_warnings: New file. * .github/workflows/ccpp32alpine.yml: New file. gcc/rust/ChangeLog: * resolve/rust-ast-resolve.cc (NameResolution::go): Fix warnings from const auto& to const auto
Diffstat (limited to 'gcc')
-rw-r--r--gcc/rust/resolve/rust-ast-resolve.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/rust/resolve/rust-ast-resolve.cc b/gcc/rust/resolve/rust-ast-resolve.cc
index 5dab772..df90cff 100644
--- a/gcc/rust/resolve/rust-ast-resolve.cc
+++ b/gcc/rust/resolve/rust-ast-resolve.cc
@@ -63,7 +63,10 @@ NameResolution::go (AST::Crate &crate)
{
// lookup current crate name
CrateNum cnum = mappings.get_current_crate ();
- const auto &crate_name = mappings.get_crate_name (cnum).value ();
+
+ // Clones the crate name instead of references due to gcc's possibly
+ // dangling references warnings
+ const auto crate_name = mappings.get_crate_name (cnum).value ();
// setup the ribs
NodeId scope_node_id = crate.get_node_id ();