aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-stmt.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/backend/rust-compile-stmt.h')
-rw-r--r--gcc/rust/backend/rust-compile-stmt.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/rust/backend/rust-compile-stmt.h b/gcc/rust/backend/rust-compile-stmt.h
index 2dfb520..0f69fb0 100644
--- a/gcc/rust/backend/rust-compile-stmt.h
+++ b/gcc/rust/backend/rust-compile-stmt.h
@@ -90,9 +90,8 @@ public:
auto fnctx = ctx->peek_fn ();
if (ty->is_unit ())
{
- tree expr_stmt
- = ctx->get_backend ()->expression_statement (fnctx.fndecl, init);
- ctx->add_statement (expr_stmt);
+ // FIXME this feels wrong
+ ctx->add_statement (init);
}
else
{