aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index 6347464..8866575 100644
--- a/gcc/rust/backend/rust-compile-context.h
+++ b/gcc/rust/backend/rust-compile-context.h
@@ -297,8 +297,7 @@ public:
void visit (TyTy::ParamType &param) override
{
- TyTy::TyVar var (param.get_ty_ref ());
- var.get_tyty ()->accept_vis (*this);
+ param.resolve ()->accept_vis (*this);
}
void visit (TyTy::FnType &type) override