diff options
Diffstat (limited to 'gcc/rust/typecheck/rust-tyty-call.cc')
-rw-r--r-- | gcc/rust/typecheck/rust-tyty-call.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/typecheck/rust-tyty-call.cc b/gcc/rust/typecheck/rust-tyty-call.cc index a28780b..f5d12b8 100644 --- a/gcc/rust/typecheck/rust-tyty-call.cc +++ b/gcc/rust/typecheck/rust-tyty-call.cc @@ -157,7 +157,7 @@ TypeCheckCallExpr::visit (FnType &type) BaseType *param_ty = fnparam.second; location_t param_locus = fn_param_pattern == nullptr - ? mappings->lookup_location (param_ty->get_ref ()) + ? mappings.lookup_location (param_ty->get_ref ()) : fn_param_pattern->get_locus (); HirId coercion_side_id = argument->get_mappings ().get_hirid (); @@ -382,7 +382,7 @@ TypeCheckMethodCallExpr::check (FnType &type) BaseType *param_ty = fnparam.second; location_t param_locus = fn_param_pattern == nullptr - ? mappings->lookup_location (param_ty->get_ref ()) + ? mappings.lookup_location (param_ty->get_ref ()) : fn_param_pattern->get_locus (); auto argument_expr_tyty = argument.get_argument_type (); |