aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-expr.h
diff options
context:
space:
mode:
authorThomas Young <wenzhang5800@gmail.com>2021-06-25 13:26:27 +0800
committerThomas Young <wenzhang5800@gmail.com>2021-06-25 13:26:27 +0800
commit4d786b72b52efedede1f9f3724d0821ee475ee71 (patch)
tree100290dad35671f1bf058241337932ef41306c4e /gcc/rust/backend/rust-compile-expr.h
parent862722c6889008068f7dacb553ae130843276a02 (diff)
downloadgcc-4d786b72b52efedede1f9f3724d0821ee475ee71.zip
gcc-4d786b72b52efedede1f9f3724d0821ee475ee71.tar.gz
gcc-4d786b72b52efedede1f9f3724d0821ee475ee71.tar.bz2
make the method get_expr of NegationExpr keep consistant with other HIR.
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 5a224e2..8391bc4 100644
--- a/gcc/rust/backend/rust-compile-expr.h
+++ b/gcc/rust/backend/rust-compile-expr.h
@@ -354,7 +354,7 @@ public:
void visit (HIR::NegationExpr &expr) override
{
auto op = expr.get_expr_type ();
- auto negated_expr = CompileExpr::Compile (expr.get_expr (), ctx);
+ auto negated_expr = CompileExpr::Compile (expr.get_expr ().get (), ctx);
auto location = expr.get_locus ();
translated