aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-fnparam.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-16 12:04:43 +0000
committerGitHub <noreply@github.com>2021-12-16 12:04:43 +0000
commit8507a68883438060b3b8e828069ffe20a084b85a (patch)
treee8696aabec33a96923587fe9bed2bbcb31a562a2 /gcc/rust/backend/rust-compile-fnparam.h
parent7615df781226137b9cd76b47df4aea6ad9f2140e (diff)
parent3a8c585300517fe5bd95bb0dc29520871183193b (diff)
downloadgcc-8507a68883438060b3b8e828069ffe20a084b85a.zip
gcc-8507a68883438060b3b8e828069ffe20a084b85a.tar.gz
gcc-8507a68883438060b3b8e828069ffe20a084b85a.tar.bz2
Merge #837
837: HIR::IdentifierPattern had all fields public r=philberty a=philberty This makes the fields private again and adds the missing getter for the identifier. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-fnparam.h')
-rw-r--r--gcc/rust/backend/rust-compile-fnparam.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-fnparam.h b/gcc/rust/backend/rust-compile-fnparam.h
index 126b49f..92a7357 100644
--- a/gcc/rust/backend/rust-compile-fnparam.h
+++ b/gcc/rust/backend/rust-compile-fnparam.h
@@ -48,10 +48,8 @@ public:
address_taken_context->lookup_addess_taken (
param.get_mappings ().get_hirid (), &address_taken);
- compiled_param
- = ctx->get_backend ()->parameter_variable (fndecl, pattern.variable_ident,
- decl_type, address_taken,
- locus);
+ compiled_param = ctx->get_backend ()->parameter_variable (
+ fndecl, pattern.get_identifier (), decl_type, address_taken, locus);
}
private: