From 4d786b72b52efedede1f9f3724d0821ee475ee71 Mon Sep 17 00:00:00 2001 From: Thomas Young Date: Fri, 25 Jun 2021 13:26:27 +0800 Subject: make the method get_expr of NegationExpr keep consistant with other HIR. --- gcc/rust/backend/rust-compile-expr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/rust/backend') 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 -- cgit v1.1