aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-fnparam.h
diff options
context:
space:
mode:
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: