aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2021-04-10 15:27:56 +0100
committerPhilip Herron <philip.herron@embecosm.com>2021-04-12 22:39:45 +0100
commitf98ccb3a0bcf6a49b4e1f2080f7f58fe39794fdf (patch)
treef158044f892933e7cd34540042b0f9ec16865959 /gcc/rust/backend/rust-compile-resolve-path.h
parent826ce3c92d69b2f2ff9d11ad39cd0843fcc21a05 (diff)
downloadgcc-f98ccb3a0bcf6a49b4e1f2080f7f58fe39794fdf.zip
gcc-f98ccb3a0bcf6a49b4e1f2080f7f58fe39794fdf.tar.gz
gcc-f98ccb3a0bcf6a49b4e1f2080f7f58fe39794fdf.tar.bz2
Refactor backend PathInExpr
This method only ever should accept HIR::PathInExpressions.
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.h')
-rw-r--r--gcc/rust/backend/rust-compile-resolve-path.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-compile-resolve-path.h b/gcc/rust/backend/rust-compile-resolve-path.h
index da1d97e..30486d0 100644
--- a/gcc/rust/backend/rust-compile-resolve-path.h
+++ b/gcc/rust/backend/rust-compile-resolve-path.h
@@ -30,10 +30,10 @@ class ResolvePathRef : public HIRCompileBase
using Rust::Compile::HIRCompileBase::visit;
public:
- static Bexpression *Compile (HIR::Expr *expr, Context *ctx)
+ static Bexpression *Compile (HIR::PathInExpression &expr, Context *ctx)
{
ResolvePathRef resolver (ctx);
- expr->accept_vis (resolver);
+ expr.accept_vis (resolver);
return resolver.resolved;
}