aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/rust-ast-lower-expr.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/hir/rust-ast-lower-expr.h')
-rw-r--r--gcc/rust/hir/rust-ast-lower-expr.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/rust/hir/rust-ast-lower-expr.h b/gcc/rust/hir/rust-ast-lower-expr.h
index 168dd01..ab3ae0a 100644
--- a/gcc/rust/hir/rust-ast-lower-expr.h
+++ b/gcc/rust/hir/rust-ast-lower-expr.h
@@ -30,10 +30,10 @@ class ASTLowerPathInExpression : public ASTLoweringBase
using Rust::HIR::ASTLoweringBase::visit;
public:
- static HIR::PathInExpression *translate (AST::PathInExpression *expr)
+ static HIR::PathInExpression *translate (AST::PathInExpression &expr)
{
ASTLowerPathInExpression compiler;
- expr->accept_vis (compiler);
+ expr.accept_vis (compiler);
rust_assert (compiler.translated);
return compiler.translated;
}
@@ -52,10 +52,10 @@ class ASTLowerQualPathInExpression : public ASTLoweringBase
public:
static HIR::QualifiedPathInExpression *
- translate (AST::QualifiedPathInExpression *expr)
+ translate (AST::QualifiedPathInExpression &expr)
{
ASTLowerQualPathInExpression compiler;
- expr->accept_vis (compiler);
+ expr.accept_vis (compiler);
rust_assert (compiler.translated);
return compiler.translated;
}
@@ -73,7 +73,7 @@ class ASTLoweringExpr : public ASTLoweringBase
using Rust::HIR::ASTLoweringBase::visit;
public:
- static HIR::Expr *translate (AST::Expr *expr, bool *terminated = nullptr);
+ static HIR::Expr *translate (AST::Expr &expr, bool *terminated = nullptr);
void visit (AST::TupleIndexExpr &expr) override;
void visit (AST::TupleExpr &expr) override;