aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.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-expr.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-expr.h')
-rw-r--r--gcc/rust/backend/rust-compile-expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-expr.h b/gcc/rust/backend/rust-compile-expr.h
index d0c752c..f98ebc6 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -526,7 +526,7 @@ public:
void visit (HIR::PathInExpression &expr) override
{
- translated = ResolvePathRef::Compile (&expr, ctx);
+ translated = ResolvePathRef::Compile (expr, ctx);
}
void visit (HIR::LoopExpr &expr) override